destroy instead of end http connection at end of pipeline

This commit is contained in:
Ryan Dahl committed 2010-05-06 09:15:44 -07:00
1 parent 3674563dd5
commit 4ce1e1fca5
1 file changed
+1 -1
+1 -1
View File
@@ -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);