summaryrefslogtreecommitdiff
path: root/plugin/protocol/http2/src/http2_stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/protocol/http2/src/http2_stream.cpp')
-rw-r--r--plugin/protocol/http2/src/http2_stream.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/protocol/http2/src/http2_stream.cpp b/plugin/protocol/http2/src/http2_stream.cpp
index e24b9c3..3d4df91 100644
--- a/plugin/protocol/http2/src/http2_stream.cpp
+++ b/plugin/protocol/http2/src/http2_stream.cpp
@@ -1959,6 +1959,9 @@ finish:
h2_stream_info->thread_id);
h2_session->frame_ctx = NULL;
delete_http2_stream_data(h2_session, h2_stream_info->tf_stream, 1);
+ /*The stream connection is closed, Force clear context**/
+ nghttp2_session_set_stream_user_data(h2_stream_info->as_client, stream_id, NULL);
+ nghttp2_session_set_stream_user_data(h2_stream_info->as_server, stream_id, NULL);
free(h2_session);
h2_session = NULL;
}