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

Function onProxyTimeout

lib/https.js:303–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

301 // But it also makes sense to treat the tunnel establishment timeout as
302 // a normal timeout for the request.
303 function onProxyTimeout() {
304 debug('onProxyTimeout', proxyTunnelTimeout);
305 cleanup();
306 const err = new ERR_PROXY_TUNNEL(`Connection to establish proxy tunnel timed out after ${proxyTunnelTimeout}ms`);
307 err.proxyTunnelTimeout = proxyTunnelTimeout;
308 afterSocket(err, socket);
309 }
310
311 if (proxyTunnelTimeout && proxyTunnelTimeout > 0) {
312 debug('proxy tunnel setTimeout', proxyTunnelTimeout);

Callers

nothing calls this directly

Calls 2

cleanupFunction · 0.70
debugFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…