Files
node/doc/api
Fedor Indutny 8efaa554f2 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.

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>
2017-06-07 13:37:23 -07:00
..
2017-06-05 12:26:21 -07:00
2017-05-30 10:09:22 -07:00
2017-05-30 10:09:22 -07:00
2017-05-30 10:09:22 -07:00
2017-05-30 10:09:22 -07:00
2016-04-20 16:34:27 -07:00
2017-06-07 13:30:01 -07:00
2017-06-05 12:26:21 -07:00
2017-05-28 07:03:35 -07:00
2017-05-30 10:09:22 -07:00
2017-06-05 12:26:21 -07:00
2017-05-28 07:00:36 -07:00
2017-05-09 15:01:44 +02:00
2016-12-20 12:31:09 -08:00
2016-12-08 13:39:45 -05:00
2017-06-05 12:26:33 -07:00
2017-05-30 10:09:22 -07:00
2017-06-05 12:24:29 -07:00
2017-06-05 12:25:51 -07:00