Skip to content

Commit

Permalink
destroy instead of end http connection at end of pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 6, 2010
1 parent 3674563 commit 4ce1e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4ce1e1f

Please sign in to comment.