From 0fd051888aef4451852f71c07786f7591674ee73 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Wed, 15 Nov 2017 15:48:49 +0100 Subject: [PATCH] http, stream: writeHWM -> writableHighWaterMark See: https://github.com/nodejs/node/pull/12860#pullrequestreview-76800871 PR-URL: https://github.com/nodejs/node/pull/17050 Reviewed-By: Calvin Metcalf Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- lib/_http_server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_http_server.js b/lib/_http_server.js index 04b6ef75302df1..f18baa6020eee7 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -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) {