You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brian White 8376f212e6 Parser: ensure no socket read if push() calls _read() during body finish
This fixes an edge case where the following happens:

 * a body stream had data pushed to it such that the highWaterMark was reached
 * when the body stream buffer dips below highWaterMark, _read() is called
 * _read() tries to read more data from the socket, which pushes the last part of the body
 * the last body part push() again calls _read() which in turn reads more data from the socket
 * at this point the parser state is not stable because _body._read and _body are not reset yet, this causes the parser to potentially try to start reading the beginning of a response in the middle of the data for another fetch result for example

Fixes #345
10 years ago
..
test-connection-fetch-dup.js test: update simulated connection tests 11 years ago
test-connection-fetch-frag.js test: update simulated connection tests 11 years ago
test-connection-fetch-spillover.js Parser: ensure no socket read if push() calls _read() during body finish 10 years ago
test-connection-fetch-stringbody.js Parser: check for non-literal bodies in FETCH 11 years ago
test-connection-idle-normal.js Connection: fix IDLE for enqueue after next tick 10 years ago
test-connection-idle-order.js Connection: wait for continuation before DONE 10 years ago
test-parse-bodystructure.js module rewrite 11 years ago
test-parse-envelope-addrs.js Parser: decode names in envelope 10 years ago
test-parse-expr.js Parser: improve quoted string escaping 10 years ago
test-parse-header.js Parser: fix base64 decoding of multi-byte character 10 years ago
test-parser.js test: fix test to reflect change in parsing behavior 10 years ago
test.js test: use lowercased filenames in test runner 11 years ago