node/doc/api
Fedor Indutny d6260a8f4b 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 14:41:22 -04:00
..
_toc.md doc: add async_hooks, n-api to _toc.md and all.md 2017-06-02 01:13:46 +03:00
addons.md doc: make the style of notes consistent 2017-05-25 18:49:41 -04:00
all.md doc: add async_hooks, n-api to _toc.md and all.md 2017-06-02 01:13:46 +03:00
assert.md doc: unify spaces in object literals 2017-06-03 01:56:19 +03:00
async_hooks.md doc: fix nits in code examples of async_hooks.md 2017-06-05 16:43:34 +03:00
buffer.md doc: use destructuring in code examples 2017-06-03 01:33:55 +03:00
child_process.md doc: unify spaces in object literals 2017-06-03 01:56:19 +03:00
cli.md 2017-06-06, Version 6.11.0 'Boron' (LTS) 2017-06-06 16:30:15 -04:00
cluster.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
console.md doc: use destructuring in code examples 2017-06-03 01:33:55 +03:00
crypto.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
debugger.md doc: remove unused/duplicated reference links 2017-05-21 00:10:47 +02:00
deprecations.md repl: remove unused function convertToContext 2017-06-05 13:30:05 +03:00
dgram.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
dns.md dns: support promisified lookup(Service) 2017-05-09 15:01:46 +02:00
documentation.md doc: replace uses of you and other style nits 2017-04-28 07:57:11 -07:00
domain.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
errors.md doc: fix ordering error in errors.md 2017-05-31 10:21:29 -07:00
events.md doc: make the style of notes consistent 2017-05-25 18:49:41 -04:00
fs.md win, doc: document per-drive current working dir 2017-06-06 11:19:23 +02:00
globals.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
http.md http: overridable keep-alive behavior of Agent 2017-06-07 14:41:22 -04:00
https.md doc: Add URL argument with http/https request 2017-06-06 22:39:10 -07:00
index.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
inspector.md inspector: allow --inspect=host:port from js 2017-06-06 14:41:17 -07:00
modules.md doc: make the style of notes consistent 2017-05-25 18:49:41 -04:00
n-api.md doc: fix typo "ndapi" in n-api.md 2017-06-06 14:11:09 -04:00
net.md doc: unify spaces in object literals 2017-06-03 01:56:19 +03:00
os.md doc: make the style of notes consistent 2017-05-25 18:49:41 -04:00
path.md win, doc: document per-drive current working dir 2017-06-06 11:19:23 +02:00
process.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
punycode.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
querystring.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
readline.md doc: unify spaces in object literals 2017-06-03 01:56:19 +03:00
repl.md doc: unify spaces in object literals 2017-06-03 01:56:19 +03:00
stream.md doc,stream: clarify 'data', pipe() and 'readable' 2017-06-05 10:19:04 +02:00
string_decoder.md doc: use destructuring in code examples 2017-06-03 01:33:55 +03:00
synopsis.md cmd: support dash as stdin alias 2017-05-23 20:41:13 +02:00
timers.md timers: add promisify support 2017-05-09 15:01:44 +02:00
tls.md doc: add missing backticks to doc/api/tls.md 2017-06-04 18:45:02 -04:00
tracing.md src: Node Tracing Controller 2016-12-20 12:31:09 -08:00
tty.md doc: add some info on tty#setRawMode() 2016-12-08 13:39:45 -05:00
url.md doc: add require modules in url.md 2017-06-03 13:21:52 +02:00
util.md doc: use prefer-rest-params eslint rule in docs 2017-06-05 14:27:57 +03:00
v8.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
vm.md doc: refine spaces in example from vm.md 2017-06-02 16:47:47 +03:00
zlib.md doc: fix code examples in zlib.md 2017-06-02 21:51:38 +03:00