summaryrefslogtreecommitdiff
path: root/lib/_http_server.js
diff options
context:
space:
mode:
authorMatteo Collina <hello@matteocollina.com>2017-11-15 15:48:49 +0100
committerMatteo Collina <hello@matteocollina.com>2017-11-15 19:12:08 +0100
commit3eb5778d1b1408d6223cdb3f5124a9b83f46f5eb (patch)
tree8989812c1ccc18273060ce7ca01da39bb57be153 /lib/_http_server.js
parent157df5a47c3aa8951e5dba4f0b05c7a9c7d9ecb1 (diff)
downloadandroid-node-v8-3eb5778d1b1408d6223cdb3f5124a9b83f46f5eb.tar.gz
android-node-v8-3eb5778d1b1408d6223cdb3f5124a9b83f46f5eb.tar.bz2
android-node-v8-3eb5778d1b1408d6223cdb3f5124a9b83f46f5eb.zip
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 <calvin.metcalf@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib/_http_server.js')
-rw-r--r--lib/_http_server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_http_server.js b/lib/_http_server.js
index 736762dc26..7315a266b8 100644
--- a/lib/_http_server.js
+++ b/lib/_http_server.js
@@ -373,13 +373,13 @@ function connectionListener(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) {