You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forwarding from http://bugs.debian.org/216821
---
When using the HTTP 1.1 protocol, LWP sets the socket nonblocking.
This means that connect(2) can fail with EINPROGRESS, and then LWP
should wait on the socket using select(2). However, LWP doesn't check
for EINPROGRESS; it instead just passes it back to the application
with code 500.
It's not clear to me why LWP uses nonblocking sockets for HTTP 1.1,
but not for HTTP 1.0, HTTPS 1.1, or HTTPS 1.0.
Here is a workaround:
--- lib/LWP/Protocol/http.pm.orig 2002-09-20 14:53:30.000000000 +0000
+++ lib/LWP/Protocol/http.pm 2003-10-21 03:54:06.000000000 +0000
@@ -48,7 +48,7 @@
}
# perl 5.005's IO::Socket does not have the blocking method.
- eval { $sock->blocking(0); };
+ #eval { $sock->blocking(0); };
$sock;
}
�а 28 �ев�. 2009, �б 02:20:16, antonio напи�а:
> Forwarding from http://bugs.debian.org/216821
>
> ---
>
> When using the HTTP 1.1 protocol, LWP sets the socket nonblocking.
> This means that connect(2) can fail with EINPROGRESS, and then LWP
> should wait on the socket using select(2). However, LWP doesn't check
> for EINPROGRESS; it instead just passes it back to the application
> with code 500.
>
> It's not clear to me why LWP uses nonblocking sockets for HTTP 1.1,
> but not for HTTP 1.0, HTTPS 1.1, or HTTPS 1.0.
>
> Here is a workaround:
>
> --- lib/LWP/Protocol/http.pm.orig 2002-09-20 14:53:30.000000000 +0000
> +++ lib/LWP/Protocol/http.pm 2003-10-21 03:54:06.000000000 +0000
> @@ -48,7 +48,7 @@
> }
>
> # perl 5.005's IO::Socket does not have the blocking method.
> - eval { $sock->blocking(0); };
> + #eval { $sock->blocking(0); };
>
> $sock;
> }
The attached patch is applied to the Debian package of libwww-perl.
Cheers,
dam
Thank you for the additional information you have supplied regarding
this Bug report.
This is an automatically generated reply to let you know your message
has been received.
Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.
Your message has been sent to the package maintainer(s):
Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
If you wish to submit further information on this problem, please
send it to 216821@bugs.debian.org.
Please do not send mail to owner@bugs.debian.org unless you wish
to report a problem with the Bug-tracking system.
--
216821: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=216821
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
The text was updated successfully, but these errors were encountered:
Migrated from rt.cpan.org#43719 (status was 'open')
Requestors:
Attachments:
From antonio@dyne.org on 2009-02-28 00:20:16:
From dam@cpan.org on 2014-04-11 21:08:37:
From 216821@bugs.debian.org on 2014-04-11 21:18:13:
The text was updated successfully, but these errors were encountered: