修正当HTTP Session被Kill时没有调用HTTP Session End、Stream Close接口的问题。

This commit is contained in:
luqiuwen
2019-08-21 14:53:12 +08:00
parent dbe9fba033
commit a02fe27f17
2 changed files with 10 additions and 1 deletions

View File

@@ -440,8 +440,13 @@ enum tfe_stream_action http_connection_entry(const struct tfe_stream * stream, e
if(hs_private->kill_signal)
{
/* Kill the TCP stream */
tfe_stream_kill(stream);
return ACTION_DROP_DATA;
/* Close the session */
__need_to_close_the_session = true;
__action = ACTION_DROP_DATA;
goto __close_the_session;
}
if (hf_private_in->is_upgrade || hf_private_in->is_passthrough)
@@ -504,6 +509,7 @@ enum tfe_stream_action http_connection_entry(const struct tfe_stream * stream, e
__need_to_close_the_session = true;
}
__close_the_session:
/* There is nothing for this session, close the session */
if (__need_to_close_the_session)
{