Files
node/lib
Fedor Indutny 1390c280bc http: overridable keep-alive behavior of Agent
Introduce two overridable `Agent` methods:

* `keepSocketAlive(socket)`
* `reuseSocket(socket, req)`

These methods can be overridden by particular `Agent` class child to
make keep-alive behavior customizable.

Motivation: destroy persisted sockets after some configurable timeout.
It is very non-trivial to do it with available primitives. Such program
will most likely need to poke with undocumented events and methods of
`Agent`. With introduced API such behavior is easy to implement.

Backport-PR-URL: https://github.com/nodejs/node/pull/18168
PR-URL: https://github.com/nodejs/node/pull/13005
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2018-02-12 19:28:12 -05:00
..
2017-10-25 04:09:42 -04:00
2017-09-05 12:49:49 -04:00
2016-12-20 14:42:45 -05:00
2018-02-12 19:28:06 -05:00
2018-02-12 19:28:05 -05:00
2017-09-05 12:49:50 -04:00
2018-02-12 19:28:04 -05:00
2017-03-08 17:11:23 -08:00
2016-10-11 12:31:51 -04:00
2018-02-12 19:28:11 -05:00
2018-02-12 19:28:04 -05:00
2017-11-28 13:10:35 +09:00
2017-09-05 12:49:49 -04:00
2017-12-13 15:53:34 +00:00
2018-02-12 19:28:11 -05:00
2018-02-12 19:28:11 -05:00
2017-03-08 17:10:34 -08:00