Lines Matching defs:handle
56 function onmessage(message, handle) {
58 onconnection(message, handle);
99 // Set custom data on handle (i.e. tls tickets key)
103 send(message, (reply, handle) => {
107 if (handle) {
109 shared(reply, { handle, indexesKey, index }, cb);
142 function shared(message, { handle, indexesKey, index }, cb) {
145 // closed. Avoids resource leaks when the handle is short-lived.
146 const close = handle.close;
148 handle.close = function() {
152 return ReflectApply(close, handle, arguments);
155 handles.set(key, handle);
156 cb(message.errno, handle);
197 // If the handle is the last handle in process,
198 // the parent process will delete the handle when worker process exits.
214 // Faux handle. net.Server is not associated with handle,
216 const handle = { close, listen, ref, unref };
217 handle.ref();
219 handle.getsockname = getsockname; // TCP handles only.
223 handles.set(key, handle);
224 cb(0, handle);
228 function onconnection(message, handle) {
243 server.onconnection(0, handle);
245 handle.close();
272 handles.forEach((handle) => {
275 if (handle[owner_symbol])
276 handle[owner_symbol].close(checkWaitingCount);
278 handle.close(checkWaitingCount);