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

Function setSocketTimeout

lib/_http_client.js:1080–1088  ·  view source on GitHub ↗
(sock, msecs)

Source from the content-addressed store, hash-verified

1078};
1079
1080function setSocketTimeout(sock, msecs) {
1081 if (sock.connecting) {
1082 sock.once('connect', function() {
1083 sock.setTimeout(msecs);
1084 });
1085 } else {
1086 sock.setTimeout(msecs);
1087 }
1088}
1089
1090ClientRequest.prototype.setNoDelay = function setNoDelay(noDelay) {
1091 this._deferToConnect('setNoDelay', [noDelay]);

Callers 1

_http_client.jsFile · 0.85

Calls 2

onceMethod · 0.45
setTimeoutMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…