Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net::HTTP::NB may forget state when reading chunk [rt.cpan.org #20930] #37

Open
oalders opened this issue Mar 30, 2017 · 0 comments
Open

Comments

@oalders
Copy link
Member

oalders commented Mar 30, 2017

Migrated from rt.cpan.org#20930 (status was 'open')

Requestors:

From [email protected] on 2006-08-10 06:07:05:

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.

From [email protected] on 2006-08-10 06:20:11:

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 [email protected] on 2006-08-10 06:31:46:

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'};

From [email protected] on 2017-01-25 21:40:33:

migrated queues: libwww-perl -> Net-HTTP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant