From e35051ec5cc7ecfcf017879915655bbfd3d0e5ec Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 17 Jan 2022 09:48:54 +0100 Subject: [PATCH] reduced the timeout from 30 to 5 seconds in 'phpfpm.pm' --- lib/phpfpm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phpfpm.pm b/lib/phpfpm.pm index 28e6714..5dc987d 100644 --- a/lib/phpfpm.pm +++ b/lib/phpfpm.pm @@ -177,7 +177,7 @@ sub phpfpm_update { $ssl = "ssl_opts => {verify_hostname => 0}", $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0 if lc($config->{accept_selfsigned_certs}) eq "y"; - my $ua = LWP::UserAgent->new(timeout => 30, $ssl); + my $ua = LWP::UserAgent->new(timeout => 5, $ssl); $ua->agent($config->{user_agent_id}) if $config->{user_agent_id} || ""; my $response = $ua->request(HTTP::Request->new('GET', $url)); if(!$response->is_success) {