summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-dump-req-when-res-ends.js
AgeCommit message (Collapse)Author
2019-11-15test: deflake test-http-dump-req-when-res-ends.jsLuigi Pinca
On some platforms the `'end'` event might not be emitted because the socket could be destroyed by the other peer while the client is still sending the data triggering an error. Use the `'close'` event instead. PR-URL: https://github.com/nodejs/node/pull/30360 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2018-04-11test: fix test-http-dump-req-when-res-endsLuigi Pinca
Fix test-http-dump-req-when-res-ends and move it back to test/parallel/ PR-URL: https://github.com/nodejs/node/pull/19866 Refs: https://github.com/nodejs/node/pull/19823 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2018-04-06test: move test-http-dump-req-when-res-endRich Trott
The implementataion is sensitive to system resource availability, so move it to sequential instead of running out of parallel directory. Fixes: https://github.com/nodejs/node/issues/19139 PR-URL: https://github.com/nodejs/node/pull/19819 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
2018-02-27http: do not replace .read() in IncomingMessageMatteo Collina
Remove the req._consumed property, as its use is completely superseded and not needed anymore. This was being set in the overridden .read(). PR-URL: https://github.com/nodejs/node/pull/18939 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>