Commit c5c671fa authored by zhujiashun's avatar zhujiashun Committed by gejun

Fix the race when creating agent socket

parent f12bd910
...@@ -1534,10 +1534,7 @@ void H2GlobalStreamCreator::ReplaceSocketForStream( ...@@ -1534,10 +1534,7 @@ void H2GlobalStreamCreator::ReplaceSocketForStream(
break; break;
} }
H2Context* ctx = static_cast<H2Context*>((*inout)->_agent_socket->parsing_context()); H2Context* ctx = static_cast<H2Context*>((*inout)->_agent_socket->parsing_context());
if (ctx == NULL) { if (ctx && ctx->RunOutStreams()) {
break;
}
if (ctx->RunOutStreams()) {
break; break;
} }
(*inout)->_agent_socket->ReAddress(inout); (*inout)->_agent_socket->ReAddress(inout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment