From 69c0b804ee34857d3c8f58f20a824749eccfe30f Mon Sep 17 00:00:00 2001 From: Jan Seidl Date: Wed, 20 Jan 2021 09:40:52 +0100 Subject: [PATCH] PINTO_UA_TIMEOUT solve https://github.com/JaSei/pinto-docker/issues/6 --- lib/Pinto/Globals.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Pinto/Globals.pm b/lib/Pinto/Globals.pm index e32c2ad9..e0d485d0 100644 --- a/lib/Pinto/Globals.pm +++ b/lib/Pinto/Globals.pm @@ -24,9 +24,10 @@ our $is_interactive = undef; # TODO: Decide how to expose this our $UA = LWP::UserAgent->new( - agent => 'Pinto/' . (__PACKAGE__->VERSION || '???'), - env_proxy => 1, - keep_alive => 5, + agent => 'Pinto/' . (__PACKAGE__->VERSION || '???'), + env_proxy => 1, + keep_alive => 5, + timeout => $ENV{PINTO_UA_TIMEOUT}, ); #------------------------------------------------------------------------------