Skip to content

http: suppress data event if req aborted

Re-enable test-http-abort-stream-end and put it into parallel category. Use system random port when calling server.listen() and fix eslint errors.

Since request.abort() turns on the '_dumped' flag in the IncomingMessage, Readable.prototype.read() needs to check the '_dumped' flag before calling the emit('data').

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test, streams

Merge request reports

Loading