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

Function closeAllSessions

lib/internal/http2/core.js:3438–3445  ·  view source on GitHub ↗

* This function closes all active sessions gracefully. * @param {*} server the underlying server whose sessions to be closed

(server)

Source from the content-addressed store, hash-verified

3436 * @param {*} server the underlying server whose sessions to be closed
3437 */
3438function closeAllSessions(server) {
3439 const sessions = server[kSessions];
3440 if (sessions.size > 0) {
3441 for (const session of sessions) {
3442 session.close();
3443 }
3444 }
3445}
3446
3447class Http2SecureServer extends TLSServer {
3448 constructor(options, requestListener) {

Callers 2

closeMethod · 0.85
closeMethod · 0.85

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…