diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-10-31 15:48:16 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-11-06 12:23:54 +0100 |
commit | d26a74dca0d04a827140a33a43c38a55f12c7296 (patch) | |
tree | e2734a92fb6c8f1c8ce821f29da68bbd6a933bc6 /Makefile | |
parent | 0673dfc0d8944a37e17fbaa683022f4b9e035577 (diff) | |
download | node-new-d26a74dca0d04a827140a33a43c38a55f12c7296.tar.gz |
http,async_hooks: keep resource object alive from socket
If `asyncReset()` is used to specify an alternative resource object
to mark a re-used socket in the HTTP Agent implementation,
store that object and keep it alive, because domains rely on GC tracking
for resource objects to manage their own lifetimes, and previously that
resource object might have been garbage-collected too early, leading to
crashes.
Fixes: https://github.com/nodejs/node/issues/30122
PR-URL: https://github.com/nodejs/node/pull/30196
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions