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

Function socketOnClose

lib/internal/http2/core.js:3579–3590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3577}
3578
3579function socketOnClose() {
3580 const session = this[kBoundSession];
3581 if (session !== undefined) {
3582 debugSessionObj(session, 'socket closed');
3583 const err = session.connecting ? new ERR_SOCKET_CLOSED() : null;
3584 const state = session[kState];
3585 state.streams.forEach((stream) => stream.close(NGHTTP2_CANCEL));
3586 state.pendingStreams.forEach((stream) => stream.close(NGHTTP2_CANCEL));
3587 session.close();
3588 closeSession(session, NGHTTP2_NO_ERROR, err);
3589 }
3590}
3591
3592function connect(authority, options, listener) {
3593 if (typeof options === 'function') {

Callers

nothing calls this directly

Calls 4

debugSessionObjFunction · 0.85
closeSessionFunction · 0.85
forEachMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…