Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the LWPx-ParanoidAgent CPAN distribution.

Report information
The Basics
Id: 43898
Status: rejected
Priority: 0/
Queue: LWPx-ParanoidAgent

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.04
Fixed in: (no value)



Subject: Guaranteed timeout may fail for https connections
If trying this script (a https connection to a non-existing host) then the timeout does not happen after 5 seconds, but after over three minutes: #!/usr/bin/perl use LWPx::ParanoidAgent; my $ua = LWPx::ParanoidAgent->new; $ua->timeout(5); my $t0 = time; $ua->get("https://www.example.com"); warn time - $t0; __END__ $ perl /tmp/paranoid.pl 190 at /tmp/paranoid.pl line 9. This is a problem of libwww-perl, see here: http://rt.cpan.org/Public/Bug/Display.html?id=22839 But I wonder if there could be a solution within LWPx::ParanoidAgent, say, using some hack with alarm(...) to guarantee the maximum timeout. Regards, Slaven