Skip to content

Commit

Permalink
http: remove duplicate check
Browse files Browse the repository at this point in the history
`socketOnDrain()` performs the exact same check and doesn't return
anything.

PR-URL: nodejs#29022
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
ronag authored and Trott committed Aug 11, 2019
1 parent 9b221e5 commit 7635b7c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7635b7c

Please sign in to comment.