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

Function createConnectionError

lib/net.js:1898–1916  ·  view source on GitHub ↗
(req, status)

Source from the content-addressed store, hash-verified

1896}
1897
1898function createConnectionError(req, status) {
1899 let details;
1900
1901 if (req.localAddress && req.localPort) {
1902 details = req.localAddress + ':' + req.localPort;
1903 }
1904
1905 const ex = new ExceptionWithHostPort(status,
1906 'connect',
1907 req.address,
1908 req.port,
1909 details);
1910 if (details) {
1911 ex.localAddress = req.localAddress;
1912 ex.localPort = req.localPort;
1913 }
1914
1915 return ex;
1916}
1917
1918function afterConnectMultiple(context, current, status, handle, req, readable, writable) {
1919 debug('connect/multiple: connection attempt to %s:%s completed with status %s', req.address, req.port, status);

Callers 2

afterConnectMultipleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…