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

Monks,

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?

update:
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?

Thanks,

-Ariel

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