mirror of https://github.com/nodejs/node.git
destroy instead of end http connection at end of pipeline
parent
3674563dd5
commit
4ce1e1fca5
|
@ -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…
Reference in New Issue