diff --git a/lib/_http_server.js b/lib/_http_server.js index 5a714da6b6c428..f87c316345ab7f 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -598,7 +598,6 @@ function resOnFinish(req, res, socket, state, server) { } } else if (state.outgoing.length === 0) { if (server.keepAliveTimeout && typeof socket.setTimeout === 'function') { - socket.setTimeout(0); socket.setTimeout(server.keepAliveTimeout); state.keepAliveTimeoutSet = true; }