Files
node/lib
Andrew Johnston 1980a36dd4 http: prevent aborted event when already completed
When socket is closed on a response for a request that is being piped to
a stream there is a condition where aborted event will be fired to http
client when socket is closing and the incomingMessage stream is still
set to readable.

We need a check for request being complete and to only raise the
'aborted' event on the http client if we have not yet completed reading
the response from the server.

Fixes: https://github.com/nodejs/node/issues/18756

PR-URL: https://github.com/nodejs/node/pull/18999
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-03-02 01:07:41 +09:00
..
2018-03-01 09:18:30 -06:00
2018-02-09 08:45:51 -05:00
2018-02-16 18:09:56 +01:00
2018-02-22 13:36:22 +00:00
2018-02-22 20:33:10 -05:00
2018-02-27 20:34:18 +08:00
2017-08-28 00:39:42 +04:00
2018-02-22 11:10:14 +01:00
2016-10-04 12:17:32 -04:00
2018-02-16 18:09:56 +01:00
2018-02-22 15:07:05 +00:00
2017-03-10 11:23:48 -08:00
2018-02-22 12:08:01 +01:00
2018-02-25 02:31:14 +08:00