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

Function cleanupSession

lib/internal/http2/core.js:1175–1193  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

1173}
1174
1175function cleanupSession(session) {
1176 const socket = session[kSocket];
1177 const handle = session[kHandle];
1178 const server = session[kServer];
1179 session[kProxySocket] = undefined;
1180 session[kSocket] = undefined;
1181 session[kHandle] = undefined;
1182 if (server) {
1183 server[kSessions].delete(session);
1184 }
1185 session[kNativeFields] = trackAssignmentsTypedArray(
1186 new Uint8Array(kSessionUint8FieldCount));
1187 if (handle)
1188 handle.ondone = null;
1189 if (socket) {
1190 socket[kBoundSession] = undefined;
1191 socket[kServer] = undefined;
1192 }
1193}
1194
1195function finishSessionClose(session, error) {
1196 debugSessionObj(session, 'finishSessionClose');

Callers 1

finishSessionCloseFunction · 0.85

Calls 2

deleteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…