From 4ce1e1fca59bc6ad6e2d19643db2ed3159ccb7dc Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 5 May 2010 01:32:18 -0700 Subject: [PATCH] destroy instead of end http connection at end of pipeline --- lib/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);