destroy instead of end http connection at end of pipeline

This commit is contained in:
Ryan Dahl
2010-05-05 01:32:18 -07:00
parent 3674563dd5
commit 4ce1e1fca5

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);