1.修复h2_session->frame_ctx中复制时序错误,导致使用时为空
This commit is contained in:
@@ -2160,9 +2160,9 @@ create_serv_stream_data(nghttp2_session *session, int32_t stream_id,
|
|||||||
TFE_LOG_ERROR(logger()->handle, "Failed at raising session begin event. ");
|
TFE_LOG_ERROR(logger()->handle, "Failed at raising session begin event. ");
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
h2_session->frame_ctx = half_private->frame_ctx;
|
||||||
http_frame_raise_session_begin(half_private->frame_ctx, h2_stream_info->tf_stream,
|
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->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);
|
TAILQ_INSERT_TAIL(&h2_stream_info->h2_session_list, h2_session, next);
|
||||||
nghttp2_session_set_stream_user_data(session, stream_id, h2_session);
|
nghttp2_session_set_stream_user_data(session, stream_id, h2_session);
|
||||||
finish:
|
finish:
|
||||||
|
|||||||
Reference in New Issue
Block a user