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

Function onserverClosed

test/async-hooks/test-tcpwrap.js:130–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130function onserverClosed() {
131 setImmediate(() => {
132 checkInvocations(tcpserver, { init: 1, before: 1, after: 1, destroy: 1 },
133 'tcpserver when server is closed');
134 checkInvocations(tcp1, { init: 1, before: 2, after: 2, destroy: 1 },
135 'tcp1 after server is closed');
136 });
137 checkInvocations(tcp2, { init: 1, before: 1, after: 1 },
138 'tcp2 synchronously when server is closed');
139
140 tick(2, () => {
141 checkInvocations(tcp2, { init: 1, before: 2, after: 2, destroy: 1 },
142 'tcp2 when server is closed');
143 checkInvocations(tcpconnect, { init: 1, before: 1, after: 1, destroy: 1 },
144 'tcpconnect when server is closed');
145 });
146}
147
148process.on('exit', onexit);
149

Callers

nothing calls this directly

Calls 2

setImmediateFunction · 0.50
tickFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…