Browse Source

destroy instead of end http connection at end of pipeline

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
4ce1e1fca5
  1. 2
      lib/http.js

2
lib/http.js

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

Loading…
Cancel
Save