in reply to Re: LWP::UserAgent request ignores timeout when internal server error encountered
in thread LWP::UserAgent request ignores timeout when internal server error encountered

Further investigation shows that timeout works for http but not for https

Does this throw any further light on it?

  • Comment on Re^2: LWP::UserAgent request ignores timeout when internal server error encountered

Replies are listed 'Best First'.
Re^3: LWP::UserAgent request ignores timeout when internal server error encountered
by hippo (Archbishop) on Aug 14, 2018 at 14:22 UTC

    Counter-example as SSCCE:

    use strict; use warnings; use LWP::UserAgent; use Test::More tests => 1; my $ua = LWP::UserAgent->new (); $ua->timeout (5); my $start = time; my $res = $ua->get ('https://www.sco.com:666/'); my $duration = time - $start; cmp_ok ($duration, '<', 10, 'Short timeout triggered');