Commit 716e9e07 authored by Yihong Wang's avatar Yihong Wang Committed by Matteo Collina
Browse files

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.

After calling request.abort(), in order to avoid the buffered
data to trigger the 'data' event, explicitly remove 'data' event
listeners.

PR-URL: https://github.com/nodejs/node/pull/13260


Reviewed-By: default avatarBrian White <mscdex@mscdex.net>
Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
parent fd54b105
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment