Home
last modified time | relevance | path

Searched refs:setKeepAlive (Results 1 – 15 of 15) sorted by relevance

/third_party/node/test/parallel/
Dtest-net-server-keepalive.js10 const setKeepAlive = socket._handle.setKeepAlive; constant
11 socket._handle.setKeepAlive = common.mustCall((enable, initialDelay) => {
14 return setKeepAlive.call(socket._handle, enable, initialDelay);
16 socket.setKeepAlive(true, 1000);
17 socket.setKeepAlive(true, 2000);
18 socket.setKeepAlive(true, 3000);
27 const setKeepAlive = clientHandle.setKeepAlive; constant
28 clientHandle.setKeepAlive = common.mustCall((enable, initialDelayMsecs) => {
31 setKeepAlive.call(clientHandle, enable, initialDelayMsecs);
32 clientHandle.setKeepAlive = setKeepAlive;
Dtest-net-keepalive.js40 assert.notStrictEqual(connection.setKeepAlive, undefined);
42 connection.setKeepAlive(true, common.platformTimeout(50));
Dtest-net-persistent-keepalive.js19 assert.strictEqual(typeof connection.setKeepAlive, 'function');
30 const s = clientConnection.setKeepAlive(true, 400);
Dtest-net-connect-keepalive.js28 client._handle.setKeepAlive = common.mustCall(
50 client._handle.setKeepAlive = common.mustNotCall();
Dtest-http2-socket-proxy.js63 assert.throws(() => socket.setKeepAlive, errMsg);
74 assert.throws(() => (socket.setKeepAlive = undefined), errMsg);
Dtest-net-after-close.js41 c.setKeepAlive();
/third_party/node/lib/
Dnet.js620 Socket.prototype.setKeepAlive = function(enable, initialDelayMsecs) { method in Socket
630 if (!this._handle.setKeepAlive) {
642 this._handle.setKeepAlive(enable, initialDelay);
1536 if (self[kSetKeepAlive] && self._handle.setKeepAlive) {
1537 self._handle.setKeepAlive(true, self[kSetKeepAliveInitialDelay]);
2093 if (self.keepAlive && clientHandle.setKeepAlive) {
2096 clientHandle.setKeepAlive(true, self.keepAliveInitialDelay);
D_http_agent.js483 socket.setKeepAlive(true, this.keepAliveMsecs);
/third_party/node/deps/undici/src/lib/core/
Dconnect.js126 socket.setKeepAlive(true, keepAliveInitialDelay)
/third_party/node/doc/api/
Dnet.md930 [`socket.setKeepAlive([enable][, initialDelay])`][`socket.setKeepAlive(enable, initialDelay)`].
1216 ### `socket.setKeepAlive([enable][, initialDelay])`
1563 [`socket.setKeepAlive([enable][, initialDelay])`][`socket.setKeepAlive(enable, initialDelay)`].
1780 [`socket.setKeepAlive(enable, initialDelay)`]: #socketsetkeepaliveenable-initialdelay
Dhttp.md234 socket.setKeepAlive(true, this.keepAliveMsecs);
1122 [`socket.setKeepAlive()`][] will be called.
3226 …similarly on what is done in \[`socket.setKeepAlive([enable][, initialDelay])`]\[`socket.setKeepAl…
3851 [`socket.setKeepAlive()`]: net.md#socketsetkeepaliveenable-initialdelay
/third_party/node/doc/changelogs/
DCHANGELOG_ARCHIVE.md1560 * tls: fix CryptoStream.setKeepAlive() (Shigeki Ohtsu)
3594 * stream.setKeepAlive (Julian Lamb)
DCHANGELOG_IOJS.md1103 * **node**: To allow for chaining of methods, the `setTimeout()`, `setKeepAlive()`, `setNoDelay()`,…
1131 …fe3e0)] - **(SEMVER-MINOR)** **net**: return this from setNoDelay and setKeepAlive (Roman Reiss) […
/third_party/node/deps/undici/
Dundici.js6572 socket.setKeepAlive(true, keepAliveInitialDelay);
/third_party/node/deps/corepack/dist/lib/
Dcorepack.cjs12168 socket.setKeepAlive(true);