1.修复h2_session->frame_ctx中复制时序错误,导致使用时为空

This commit is contained in:
fengweihao
2019-06-08 14:35:55 +08:00
parent 814d5b4a30
commit e7438649d1

View File

@@ -2159,10 +2159,10 @@ create_serv_stream_data(nghttp2_session *session, int32_t stream_id,
if (half_private->frame_ctx == NULL){
TFE_LOG_ERROR(logger()->handle, "Failed at raising session begin event. ");
goto finish;
}
}
h2_session->frame_ctx = half_private->frame_ctx;
http_frame_raise_session_begin(half_private->frame_ctx, h2_stream_info->tf_stream,
&h2_session->tfe_session, h2_stream_info->thread_id);
h2_session->frame_ctx = half_private->frame_ctx;
TAILQ_INSERT_TAIL(&h2_stream_info->h2_session_list, h2_session, next);
nghttp2_session_set_stream_user_data(session, stream_id, h2_session);
finish: