0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc
Robert Nagy 8700d89306 http: fix socket re-use races
Whether and when a socket is destroyed or not after a timeout is up to
the user. This leaves an edge case where a socket that has emitted
'timeout' might be re-used from the free pool. Even if destroy is called
on the socket, it won't be removed from the freelist until 'close' which
can happen several ticks later.

Sockets are removed from the free list on the 'close' event.
However, there is a delay between calling destroy() and 'close'
being emitted. This means that it possible for a socket that has
been destroyed to be re-used from the free list, causing unexpected
failures.

PR-URL: https://github.com/nodejs/node/pull/32000
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2020-03-07 20:51:12 +01:00
..
api http: fix socket re-use races 2020-03-07 20:51:12 +01:00
api_assets doc: remove redundant properties from headers 2020-01-28 15:34:17 +00:00
changelogs 2020-03-04 Version 13.10.1 (Current) 2020-03-04 20:37:29 -05:00
guides doc: remove em dashes 2020-03-05 22:25:42 -08:00
.eslintrc.yaml tools: lint doc code examples in strict mode 2018-07-06 08:45:34 +03:00
abi_version_registry.json doc: claim ABI version 82 for Electron 10 2020-02-16 16:55:42 +01:00
first_timer_badge.png
full-white-stripe.jpg
node.1 esm: import.meta.resolve with nodejs: builtins 2020-02-03 18:31:02 +02:00
osx_installer_logo.png
template.html doc: specify display=fallback for Google Fonts 2019-09-26 22:46:34 -07:00
thin-white-stripe.jpg