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

Method finishShutdown

lib/internal/js_stream_socket.js:165–172  ·  view source on GitHub ↗
(handle, errCode)

Source from the content-addressed store, hash-verified

163
164 // handle === this._handle except when called from doClose().
165 finishShutdown(handle, errCode) {
166 // The shutdown request might already have been cancelled.
167 if (this[kCurrentShutdownRequest] === null)
168 return;
169 const req = this[kCurrentShutdownRequest];
170 this[kCurrentShutdownRequest] = null;
171 handle.finishShutdown(req, errCode);
172 }
173
174 doWrite(req, bufs) {
175 assert(this[kCurrentWriteRequest] === null);

Callers 2

doShutdownMethod · 0.95
doCloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected