Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

500 SSL read timeout

by ariel2 (Beadle)
on Sep 12, 2005 at 18:06 UTC ( #491328=perlquestion: print w/replies, xml ) Need Help??

ariel2 has asked for the wisdom of the Perl Monks concerning the following question:


I have a script that does multiple HTTPS requests via LWP (and I have Crypt::SSLeay installed). About 3 out of 4 times, it fails with "500 SSL read timeout". Changing the LWP user agent timeout doesn't seem to affect this problem. Is this a server-side or client-side error message? Does anyone know of a remedy for this?

I don't think that this is the 500 server error. After doing a little research, it appears that this error is generated in Net::SSL on this line:
local $SIG{ALRM} = sub { $self->die_with_error("SSL read timeout") };

Anyone have any idea what to do about this?



Replies are listed 'Best First'.
Re: 500 SSL read timeout
by jdhedden (Deacon) on Sep 12, 2005 at 20:27 UTC
    You can set a timeout value. The default is 60 secs. For instances, using LWP::UserAgent:
    my $ua = LWP::UserAgent->new( timeout => 90 );

    Remember: There's always one more bug.
Re: 500 SSL read timeout
by sh1tn (Priest) on Sep 12, 2005 at 18:22 UTC
Re: 500 SSL read timeout
by kwaping (Priest) on Sep 12, 2005 at 19:23 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://491328]
Approved by ww
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2019-11-17 23:29 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (87 votes). Check out past polls.