Skip to content

Commit 0fd0518

Browse files
mcollinagibfahn
authored andcommitted
http, stream: writeHWM -> writableHighWaterMark
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]>
1 parent 6aa0adc commit 0fd0518

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/_http_server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ function connectionListenerInternal(server, socket) {
380380
function updateOutgoingData(socket, state, delta) {
381381
state.outgoingData += delta;
382382
if (socket._paused &&
383-
state.outgoingData < socket.writeHWM) {
383+
state.outgoingData < socket.writableHighWaterMark) {
384384
return socketOnDrain(socket, state);
385385
}
386386
}
387387

388388
function socketOnDrain(socket, state) {
389-
var needPause = state.outgoingData > socket.writeHWM;
389+
var needPause = state.outgoingData > socket.writableHighWaterMark;
390390

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

0 commit comments

Comments
 (0)