diff --git a/lib/_http_server.js b/lib/_http_server.js index 4a964660903def..b01759e9a5b729 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -441,13 +441,9 @@ function connectionListenerInternal(server, socket) { socket._paused = false; } - function updateOutgoingData(socket, state, delta) { state.outgoingData += delta; - if (socket._paused && - state.outgoingData < socket.writableHighWaterMark) { - return socketOnDrain(socket, state); - } + socketOnDrain(socket, state); } function socketOnDrain(socket, state) {