From 3d9d1ade2a361f408b116c5bafb2fcd560310f9c Mon Sep 17 00:00:00 2001 From: Gerhard Stoebich <18708370+Flarna@users.noreply.github.com> Date: Sun, 5 May 2019 21:29:32 +0200 Subject: async_hooks: don't reuse resource in HttpAgent As discussed in https://github.com/nodejs/diagnostics/issues/248, https://github.com/nodejs/node/pull/21313 and https://docs.google.com/document/d/1g8OrG5lMIUhRn1zbkutgY83MiTSMx-0NHDs8Bf-nXxM/preview reusing the resource object is a blocker for landing a resource based async hooks API and get rid of the promise destroy hook. This PR ensures that HttpAgent uses the a new resource object in case the socket handle gets reused. PR-URL: https://github.com/nodejs/node/pull/27581 Reviewed-By: Matteo Collina Reviewed-By: Rich Trott --- src/async_wrap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/async_wrap.h') diff --git a/src/async_wrap.h b/src/async_wrap.h index 3a8789f89b..0fe4135223 100644 --- a/src/async_wrap.h +++ b/src/async_wrap.h @@ -133,6 +133,7 @@ class AsyncWrap : public BaseObject { static void PushAsyncIds(const v8::FunctionCallbackInfo& args); static void PopAsyncIds(const v8::FunctionCallbackInfo& args); static void AsyncReset(const v8::FunctionCallbackInfo& args); + static void GetProviderType(const v8::FunctionCallbackInfo& args); static void QueueDestroyAsyncId( const v8::FunctionCallbackInfo& args); -- cgit v1.2.3