Skip to content
Permalink
Browse files

http: remove duplicate check

`socketOnDrain()` performs the exact same check and doesn't return
anything.

PR-URL: #29022
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information...
ronag authored and targos committed Aug 6, 2019
1 parent 2528dee commit 13a497912d71b516352599e36f7172e654c3aec4
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/_http_server.js
@@ -444,13 +444,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) {

0 comments on commit 13a4979

Please sign in to comment.
You can’t perform that action at this time.