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

Function closeSocketHandle

lib/net.js:351–363  ·  view source on GitHub ↗
(self, isException, isCleanupPending = false)

Source from the content-addressed store, hash-verified

349}
350
351function closeSocketHandle(self, isException, isCleanupPending = false) {
352 if (self._handle) {
353 self._handle.close(() => {
354 debug('emit close');
355 self.emit('close', isException);
356 if (isCleanupPending) {
357 self._handle.onread = noop;
358 self._handle = null;
359 self._sockname = null;
360 }
361 });
362 }
363}
364
365const kBytesRead = Symbol('kBytesRead');
366const kBytesWritten = Symbol('kBytesWritten');

Callers 1

net.jsFile · 0.85

Calls 3

closeMethod · 0.65
debugFunction · 0.50
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…