Skip to content

Commit a6b6acb

Browse files
mcollinaMylesBorins
authored andcommittedDec 11, 2017
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 edb9846 commit a6b6acb

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
@@ -373,13 +373,13 @@ function connectionListener(socket) {
373373
function updateOutgoingData(socket, state, delta) {
374374
state.outgoingData += delta;
375375
if (socket._paused &&
376-
state.outgoingData < socket.writeHWM) {
376+
state.outgoingData < socket.writableHighWaterMark) {
377377
return socketOnDrain(socket, state);
378378
}
379379
}
380380

381381
function socketOnDrain(socket, state) {
382-
var needPause = state.outgoingData > socket.writeHWM;
382+
var needPause = state.outgoingData > socket.writableHighWaterMark;
383383

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

0 commit comments

Comments
 (0)
Please sign in to comment.