From 9300b4b6ec374966ed973c34b1dc624e72a629c5 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 6 Aug 2019 18:21:48 +0200 Subject: [PATCH] http: remove duplicate check --- lib/_http_server.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) {