[Bug 768394] LWP::UserAgent cuts chunked response sent through HTTPS

bugzilla at redhat.com bugzilla at redhat.com
Fri Jan 18 04:12:16 UTC 2013


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

Claude Brown <claude at falam.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |claude at falam.net

--- Comment #13 from Claude Brown <claude at 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



More information about the perl-devel mailing list