File tree 1 file changed +12
-0
lines changed
src/RequestHandler/outofprocess
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,12 @@ FORWARDING_HANDLER::OnExecuteRequestHandler()
97
97
STACK_STRU (strUrl, 2048 );
98
98
STACK_STRU (struEscapedUrl, 2048 );
99
99
100
+ //
101
+ // Take a reference so that object does not go away as a result of
102
+ // async completion.
103
+ //
104
+ ReferenceRequestHandler ();
105
+
100
106
// override Protocol related config from aspNetCore config
101
107
pProtocol->OverrideConfig (m_pApplication->QueryConfig ());
102
108
@@ -354,6 +360,12 @@ FORWARDING_HANDLER::OnExecuteRequestHandler()
354
360
ReleaseSRWLockShared (&m_RequestLock);
355
361
DBG_ASSERT (TlsGetValue (g_dwTlsIndex) == NULL );
356
362
}
363
+
364
+ DereferenceRequestHandler ();
365
+ //
366
+ // Do not use this object after dereferencing it, it may be gone.
367
+ //
368
+
357
369
return retVal;
358
370
}
359
371
You can’t perform that action at this time.
0 commit comments