Skip to content

Commit

Permalink
Fix context RefCount when debugger is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rramachand21-zz committed Feb 21, 2017
1 parent da4e5e1 commit 1bf74c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/iisnode/cprotocolbridge.cpp
Expand Up @@ -539,11 +539,14 @@ HRESULT CProtocolBridge::InitiateRequest(CNodeHttpStoredContext* context)
CheckError(child->GetRequest()->SetUrl(context->GetTargetUrl(), context->GetTargetUrlLength(), FALSE));
context->SetChildContext(child);
context->SetNextProcessor(CProtocolBridge::ChildContextCompleted);


context->ReferenceNodeHttpStoredContext();

CheckError(context->GetHttpContext()->ExecuteRequest(TRUE, child, 0, NULL, &completionExpected));
if (!completionExpected)
{
CProtocolBridge::ChildContextCompleted(S_OK, 0, context->GetOverlapped(), &fCompletionPosted);
context->DereferenceNodeHttpStoredContext();
}
}
else
Expand Down

0 comments on commit 1bf74c5

Please sign in to comment.