From 9b7376d23fbdedf06c192a6f5cd7988a7aec28c7 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Fri, 8 Sep 2017 23:42:23 +0200 Subject: [PATCH] http: set aborted on incoming --- lib/_http_incoming.js | 1 + lib/_http_server.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/_http_incoming.js b/lib/_http_incoming.js index 6e5aff1cc9c1f2..0e0e29adff17e9 100644 --- a/lib/_http_incoming.js +++ b/lib/_http_incoming.js @@ -60,6 +60,7 @@ function IncomingMessage(socket) { this.readable = true; this.upgrade = null; + this.aborted = null; // request (server) only this.url = ''; diff --git a/lib/_http_server.js b/lib/_http_server.js index 8ea7cfbace9df0..ee051c791d6b1c 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -408,6 +408,7 @@ function socketOnClose(socket, state) { function abortIncoming(incoming) { while (incoming.length) { var req = incoming.shift(); + req.aborted = Date.now(); req.emit('aborted'); req.emit('close'); }