We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edb9846 commit a6b6acbCopy full SHA for a6b6acb
lib/_http_server.js
@@ -373,13 +373,13 @@ function connectionListener(socket) {
373
function updateOutgoingData(socket, state, delta) {
374
state.outgoingData += delta;
375
if (socket._paused &&
376
- state.outgoingData < socket.writeHWM) {
+ state.outgoingData < socket.writableHighWaterMark) {
377
return socketOnDrain(socket, state);
378
}
379
380
381
function socketOnDrain(socket, state) {
382
- var needPause = state.outgoingData > socket.writeHWM;
+ var needPause = state.outgoingData > socket.writableHighWaterMark;
383
384
// If we previously paused, then start reading again.
385
if (socket._paused && !needPause) {
0 commit comments