Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=768394

Claude Brown <cla...@falam.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cla...@falam.net

--- Comment #13 from Claude Brown <cla...@falam.net> ---
I also have experienced this bug in "Net::HTTP" in version 6.02 and after a lot
of debugging over the past few days I found the problem.

Sometimes "Net::HTTP->read_entity_body" assumes that some data will be
immediately available to "sysread" when it needs it.  For a non-blocking socket
this isn't always true.

However, often the code gets away with it because the assumption is made when
reading the "chunk data" just after the "chunk length". Web-servers will often
send these things pretty quickly and so the assumption holds.

I had a look at Net::HTTP 6.05 and the problem has been resolved by ensuring
that "select" is used to wait for the specified timeout period before giving
up.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug 
https://bugzilla.redhat.com/token.cgi?t=RJRx2nGqwq&a=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to