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

Function internalConnectMultipleTimeout

lib/net.js:1959–1971  ·  view source on GitHub ↗
(context, req, handle)

Source from the content-addressed store, hash-verified

1957}
1958
1959function internalConnectMultipleTimeout(context, req, handle) {
1960 debug('connect/multiple: connection to %s:%s timed out', req.address, req.port);
1961 context.socket.emit('connectionAttemptTimeout', req.address, req.port, req.addressType);
1962
1963 req.oncomplete = undefined;
1964 ArrayPrototypePush(context.errors, createConnectionError(req, UV_ETIMEDOUT));
1965 handle.close();
1966
1967 // Try the next address, unless we were aborted
1968 if (context.socket.connecting) {
1969 internalConnectMultiple(context);
1970 }
1971}
1972
1973function addServerAbortSignalOption(self, options) {
1974 if (options?.signal === undefined) {

Callers

nothing calls this directly

Calls 5

internalConnectMultipleFunction · 0.85
createConnectionErrorFunction · 0.70
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…