1.修复规则命中后,请求端half未初始化

This commit is contained in:
fengweihao
2019-06-11 17:38:50 +08:00
parent 77eb5505e0
commit 104fe5af71

View File

@@ -1644,6 +1644,10 @@ nghttp2_client_frame_submit_header(struct tfe_h2_stream *h2_stream_info,
if (req == NULL){
return ACTION_FORWARD_DATA;
}
/*Create C' half_private_resp**/
downstream_create_resp(h2_session, h2_stream_info->as_client, h2_stream_info->as_server,
h2_stream_info->tf_stream, h2_stream_info->thread_id);
nghttp2_session_set_next_stream_id(h2_stream_info->as_client, h2_session->ngh2_stream_id);
if (h2_session->plugin_built_resp)
{
@@ -1655,10 +1659,6 @@ nghttp2_client_frame_submit_header(struct tfe_h2_stream *h2_stream_info,
{
return ACTION_FORWARD_DATA;
}
/*Create C' half_private_resp**/
downstream_create_resp(h2_session, h2_stream_info->as_client, h2_stream_info->as_server,
h2_stream_info->tf_stream, h2_stream_info->thread_id);
nghttp2_session_set_next_stream_id(h2_stream_info->as_client, h2_session->ngh2_stream_id);
nghttp2_nv hdrs[headers->nvlen];