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

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

Thread Previous | Thread Next
From:
jesso2000
Date:
October 23, 2001 06:52
Subject:
Re: LWP 5.53_97 with Crypt::SSLeay-0.31
Message ID:
5.1.0.14.2.20011023094935.00a810f0@mail.earthlink.net
Well I was pretty excited when Michael sent this email, but I'm looking
at my http11.pm and the blocking line isn't there to be deleted.

Anyone have any other ideas for me? I will actually pay any reasonable
fee if one of you "pros" can help me fix this problem ...

Thanks,

Ed

>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