Skip to content

Commit

Permalink
http, stream: writeHWM -> writableHighWaterMark
Browse files Browse the repository at this point in the history
See: #12860 (review)

PR-URL: #17050
Reviewed-By: Calvin Metcalf <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
mcollina authored and gibfahn committed Jan 27, 2018
1 parent 6aa0adc commit 0fd0518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,13 @@ function connectionListenerInternal(server, socket) {
function updateOutgoingData(socket, state, delta) {
state.outgoingData += delta;
if (socket._paused &&
state.outgoingData < socket.writeHWM) {
state.outgoingData < socket.writableHighWaterMark) {
return socketOnDrain(socket, state);
}
}

function socketOnDrain(socket, state) {
var needPause = state.outgoingData > socket.writeHWM;
var needPause = state.outgoingData > socket.writableHighWaterMark;

// If we previously paused, then start reading again.
if (socket._paused && !needPause) {
Expand Down

0 comments on commit 0fd0518

Please sign in to comment.