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

Function postSend

lib/internal/child_process.js:168–184  ·  view source on GitHub ↗
(message, handle, options, callback, target)

Source from the content-addressed store, hash-verified

166 },
167
168 postSend(message, handle, options, callback, target) {
169 // Store the handle after successfully sending it, so it can be closed
170 // when the NODE_HANDLE_ACK is received. If the handle could not be sent,
171 // just close it.
172 if (handle && !options.keepOpen) {
173 if (target) {
174 // There can only be one _pendingMessage as passing handles are
175 // processed one at a time: handles are stored in _handleQueue while
176 // waiting for the NODE_HANDLE_ACK of the current passing handle.
177 assert(!target._pendingMessage);
178 target._pendingMessage =
179 { callback, message, handle, options, retransmissions: 0 };
180 } else {
181 handle.close();
182 }
183 }
184 },
185
186 got(message, handle, emit) {
187 const socket = new net.Socket({

Callers

nothing calls this directly

Calls 2

assertFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…