Conversation
|
This should probably be in 10.x to avoid a regression in |
|
What would this fix? Is there a bug to track that? What is the regression? Side note, before this there was zero test coverage of _dump behavior. And a test to see _dump called as been added. |
Any situation that's not covered by the current I'm still fixing one failure on the CI. Should have a fix shortly. |
91cd8f8 to
83a0fee
Compare
|
CI: https://ci.nodejs.org/job/node-test-pull-request/14342/ Had to add back the manipulation of the |
83a0fee to
8a9ef4f
Compare
A recent set of changes removed _consuming tracking from server incoming messages which ensures that _dump only runs if the user has never attempted to read the incoming data. Fix by reintroducing _consuming which tracks whether _read was ever sucessfully called.
8a9ef4f to
32d6472
Compare
mcollina
left a comment
There was a problem hiding this comment.
I think we should document this somewhere.
LGTM on code (we’ll need to remove those _readableState access later on).
|
Landed in 3d480dc |
A recent set of changes removed _consuming tracking from server incoming messages which ensures that _dump only runs if the user has never attempted to read the incoming data. Fix by reintroducing _consuming which tracks whether _read was ever successfully called. PR-URL: #20088 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
|
@jasnell if you can pull this in into 10.0.0 that would be ideal. That way we can avoid a potential regression in |
A recent set of changes removed _consuming tracking from server incoming messages which ensures that _dump only runs if the user has never attempted to read the incoming data. Fix by reintroducing _consuming which tracks whether _read was ever successfully called. PR-URL: #20088 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
|
Backported the test part for v8.x in #21595 |
A recent set of changes removed
_consumingtracking from server incoming messages which ensures thatIncomingMessage#_dumponly runs if the user has never attempted to read the incoming data. Fix by reintroducing_consumingwhich tracks whetherIncomingMessage#_readwas ever successfully called.Long-term it would be nice if it was possible to reply with status code 413 to a request with a long payload (without actually handling all of that payload) and not have the http client throw
write EPIPEerror while not receiving any of that response.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes