diff --git a/lib/http.js b/lib/http.js index 3f348ad3f3..4011c529ad 100644 --- a/lib/http.js +++ b/lib/http.js @@ -606,7 +606,7 @@ function connectionListener (socket) { res.shouldKeepAlive = shouldKeepAlive; res.addListener('flush', function () { if (flushMessageQueue(socket, responses)) { - socket.end(); + socket.destroy(); } }); responses.push(res);