Skip to content

Commit

Permalink
fix AV in failure path before request assignment to a worker process
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanczuk committed Aug 23, 2011
1 parent d63f678 commit 41ab29c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/iisnode/cprotocolbridge.cpp
Expand Up @@ -20,7 +20,13 @@ HRESULT CProtocolBridge::SendEmptyResponse(CNodeHttpStoredContext* context, USHO

context->SetHresult(hresult);
context->SetRequestNotificationStatus(RQ_NOTIFICATION_FINISH_REQUEST);
context->GetNodeProcess()->OnRequestCompleted(context);
if (NULL != context->GetNodeProcess())
{
// there is no CNodeProcess assigned to the request yet - something failed before it was moved from the pending queue
// to an active request queue of a specific process

context->GetNodeProcess()->OnRequestCompleted(context);
}

CProtocolBridge::SendEmptyResponse(context->GetHttpContext(), status, reason, hresult);

Expand Down

0 comments on commit 41ab29c

Please sign in to comment.