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.
This commit is contained in:
Ryan Dahl 2010-05-09 21:29:51 -07:00
parent 15bb392afd
commit 8ab238e7de

View File

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