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) {