Skip Menu |

This queue is for tickets about the Net-HTTP CPAN distribution.

Report information
The Basics
Id: 20930
Status: resolved
Priority: 0/
Queue: Net-HTTP

People
Owner: Nobody in particular
Requestors: hiranotaka [...] zng.info
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Net::HTTP::NB may forget state when reading chunk
When Net::HTTP::NB::read_entity_body reads chunk, if Net::HTTP::NB::my_read raises "Multi-read\n" exception, ${*$self}{'http_chunked'} remains an old value, which should become a new value, $chunked.
Subject: Net::HTTP::NB may forget chunked state when reading "http_first_body"
From: hiranotaka [...] zng.info
Well, i should correct the report as following: When Net::HTTP::NB::read_entity_body reads "http_first_body", if Net::HTTP::NB::my_read raises "Multi-read\n" exception, ${*$self}{'http_chunked'} remains undefined, which should become $chunked.
From: hiranotaka [...] zng.info
patch *** Methods.pm.orig 2005-12-07 19:01:37.000000000 +0900 --- Methods.pm 2006-08-10 15:27:13.000000000 +0900 *************** *** 415,420 **** --- 415,422 ---- # Read until EOF } + ${*$self}{'http_chunked'} = $chunked; + ${*$self}{'http_bytes'} = $bytes; } else { $chunked = ${*$self}{'http_chunked'};
migrated queues: libwww-perl -> Net-HTTP