http resume后应给tcp层返回当前数据的处理结果。
This commit is contained in:
@@ -241,8 +241,17 @@ enum tfe_stream_action __http_connection_entry_on_request(const struct tfe_strea
|
||||
goto __errout;
|
||||
}
|
||||
|
||||
if(hf_private_req_in->is_user_stream_action_set)
|
||||
{
|
||||
hf_private_req_in->stream_action = hf_private_req_in->user_stream_action;
|
||||
}
|
||||
else
|
||||
{
|
||||
hf_private_req_in->stream_action = ACTION_FORWARD_DATA;
|
||||
}
|
||||
|
||||
/* Ignore parse the content which is nullptr. */
|
||||
goto __out;
|
||||
goto __boundary;
|
||||
}
|
||||
|
||||
/* Parse the content, the data which in defered state has been ignored. */
|
||||
@@ -281,16 +290,17 @@ enum tfe_stream_action __http_connection_entry_on_request(const struct tfe_strea
|
||||
goto __errout;
|
||||
}
|
||||
|
||||
/* Touch a boundary, such as the end of HTTP headers, bodys, et al. */
|
||||
__action_args = hf_private_req_in->parse_cursor;
|
||||
hf_private_req_in->parse_cursor = 0;
|
||||
|
||||
if (__on_request_handle_user_req_or_resp(stream, hs_private,
|
||||
hf_private_req_in, __need_to_close_the_session) < 0)
|
||||
{
|
||||
goto __errout;
|
||||
}
|
||||
|
||||
__boundary:
|
||||
/* Touch a boundary, such as the end of HTTP headers, bodys, et al. */
|
||||
__action_args = hf_private_req_in->parse_cursor;
|
||||
hf_private_req_in->parse_cursor = 0;
|
||||
|
||||
if (hf_private_req_in->stream_action == ACTION_FORWARD_DATA)
|
||||
{
|
||||
tfe_stream_action_set_opt(stream, ACTION_OPT_FOWARD_BYTES, &__action_args, sizeof(__action_args));
|
||||
|
||||
Reference in New Issue
Block a user