From 8ab238e7de8429961ce4d6fd9114555e5df90a13 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 9 May 2010 21:29:51 -0700 Subject: [PATCH] Revert "destroy instead of end http connection at end of pipeline" This reverts commit 4ce1e1fca59bc6ad6e2d19643db2ed3159ccb7dc. To fix test-http-full-response.js. Clearly this is not the correct solution. Probably need idle timeouts. --- lib/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http.js b/lib/http.js index 4011c529ad..3f348ad3f3 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.destroy(); + socket.end(); } }); responses.push(res);