develooper Front page | perl.libwww | Postings from October 2001

Re: LWP 5.53_97 with Crypt::SSLeay-0.31

Thread Previous | Thread Next
From:
Michael Thompson
Date:
October 22, 2001 14:32
Subject:
Re: LWP 5.53_97 with Crypt::SSLeay-0.31
Message ID:
200110222152.f9MLqIT18577@berkeley.innomedia.com

la mouton wrote:
> LWP::UserAgent::request: Simple response: Internal Server Error

Yes, I encountered that error, too. I traced the problem
to _new_socket() in LWP::Protocol::http11 which was putting
the socket in non-blocking mode. This would sometimes cause
reads to return EAGAIN, which not everything is prepared for.
Below is my patch.

Michael Thompson
mickey@berkeley.innomedia.com
---- c u t -- h e r e ----


--- http11.pm.orig      Mon Oct 22 14:14:56 2001
+++ http11.pm   Mon Oct 22 14:15:13 2001
@@ -79,7 +79,6 @@
        $@ =~ s/^.*?: //;
        die "Can't connect to $host:$port ($@)";
     }
-    $sock->blocking(0);
     $sock;
 }

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About