#86 修正在HTTP请求在Resume()操作后设置HTTP应答,没有丢弃原始HTTP请求的问题。

* 原实现在用户调用resume()后,没有将用户设置的user_stream_action传递到原始HTTP请求,导致该原始请求没有被丢弃,现修正。@luqiuwen
This commit is contained in:
zhengchao
2018-11-20 15:56:13 +08:00
parent 769e7cc37d
commit 67edf968f6

View File

@@ -392,6 +392,12 @@ enum tfe_stream_action http_connection_entry(const struct tfe_stream * stream, e
hs_private->release_lock--;
hs_private->suspend_counter++;
/* Retrieve the user's stream action, because the user may set request/response at resume's callback */
if(hf_private_in->is_user_stream_action_set)
{
hf_private_in->stream_action = hf_private_in->user_stream_action;
}
/* Call user callback, tell user we resume from suspend */
assert(hs_private->resume_tag_singal);
hs_private->resume_tag_singal = false;