@@ -117,6 +117,10 @@ http.get({
117117<!-- YAML
118118added: v0.3.4
119119changes:
120+ - version:
121+ - REPLACEME
122+ pr-url: https://github.com/nodejs/node/pull/42163
123+ description: Changed the default value of `keepAlive` to `true`.
120124 - version:
121125 - v15.6.0
122126 - v14.17.0
@@ -144,11 +148,11 @@ changes:
144148 header is always sent when using an agent except when the ` Connection `
145149 header is explicitly specified or when the ` keepAlive ` and ` maxSockets `
146150 options are respectively set to ` false ` and ` Infinity ` , in which case
147- ` Connection: close ` will be used. ** Default:** ` false ` .
151+ ` Connection: close ` will be used. ** Default:** ` true ` .
148152 * ` keepAliveMsecs ` {number} When using the ` keepAlive ` option, specifies
149153 the [ initial delay] [ ]
150154 for TCP Keep-Alive packets. Ignored when the
151- ` keepAlive ` option is ` false ` or ` undefined ` . ** Default:** ` 1000 ` .
155+ ` keepAlive ` option is ` false ` . ** Default:** ` 1000 ` .
152156 * ` maxSockets ` {number} Maximum number of sockets to allow per host.
153157 If the same host opens multiple concurrent connections, each request
154158 will use new socket until the ` maxSockets ` value is reached.
@@ -2838,6 +2842,12 @@ Found'`.
28382842<!-- YAML
28392843added: v0.1.13
28402844changes:
2845+ - version:
2846+ - REPLACEME
2847+ pr-url: https://github.com/nodejs/node/pull/42163
2848+ description: Changed the default value of `noDelay` and `keepAlive`
2849+ to `true`. Changed the default value of `keepAliveInitialDelay`
2850+ to `1000`.
28412851 - version:
28422852 - v13.8.0
28432853 - v12.15.0
@@ -2871,14 +2881,14 @@ changes:
28712881 ** Default:** 16384 (16 KB).
28722882 * ` noDelay ` {boolean} If set to ` true ` , it disables the use of Nagle's
28732883 algorithm immediately after a new incoming connection is received.
2874- ** Default:** ` false ` .
2884+ ** Default:** ` true ` .
28752885 * ` keepAlive ` {boolean} If set to ` true ` , it enables keep-alive functionality
28762886 on the socket immediately after a new incoming connection is received,
28772887 similarly on what is done in \[ ` socket.setKeepAlive([enable][, initialDelay]) ` ] \[ ` socket.setKeepAlive(enable, initialDelay) ` ] .
2878- ** Default:** ` false ` .
2888+ ** Default:** ` true ` .
28792889 * ` keepAliveInitialDelay ` {number} If set to a positive number, it sets the
28802890 initial delay before the first keepalive probe is sent on an idle socket.
2881- ** Default:** ` 0 ` .
2891+ ** Default:** ` 1000 ` .
28822892
28832893* ` requestListener ` {Function}
28842894
0 commit comments