From e7438649d1772dbc4a4d701419b6612fdc5c9347 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Sat, 8 Jun 2019 14:35:55 +0800 Subject: 1.修复h2_session->frame_ctx中复制时序错误,导致使用时为空 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/protocol/http2/src/http2_stream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/protocol/http2/src/http2_stream.cpp') diff --git a/plugin/protocol/http2/src/http2_stream.cpp b/plugin/protocol/http2/src/http2_stream.cpp index 7514279..cf53aa7 100644 --- a/plugin/protocol/http2/src/http2_stream.cpp +++ b/plugin/protocol/http2/src/http2_stream.cpp @@ -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: -- cgit v1.2.3