MCPcopy Index your code
hub / github.com/nodejs/node / onSocketResume

Function onSocketResume

lib/_http_server.js:1397–1413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1395}
1396
1397function onSocketResume() {
1398 // It may seem that the socket is resumed, but this is an enemy's trick to
1399 // deceive us! `resume` is emitted asynchronously, and may be called from
1400 // `incoming.readStart()`. Stop the socket again here, just to preserve the
1401 // state.
1402 //
1403 // We don't care about stream semantics for the consumed socket anyway.
1404 if (this._paused) {
1405 this.pause();
1406 return;
1407 }
1408
1409 if (this._handle && !this._handle.reading) {
1410 this._handle.reading = true;
1411 this._handle.readStart();
1412 }
1413}
1414
1415function onSocketPause() {
1416 if (this._handle?.reading) {

Callers

nothing calls this directly

Calls 2

pauseMethod · 0.65
readStartMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…