diff options
| author | fengweihao <[email protected]> | 2021-01-12 16:17:18 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2021-01-12 16:17:18 +0800 |
| commit | fee4b2daaaa29288ac42d54ac1404daf4e00b22c (patch) | |
| tree | 93032efa491c8b53f9f0b73ab88634b76ee2d4bb /plugin/protocol/http2/src/http2_stream.cpp | |
| parent | f99cfe9c1c09645753a1035a077cf979c09f55ed (diff) | |
TSG-5003 无条件发送Metric,与Log Session开关无关v4.3.27-202101
请求体正则替换修复
Diffstat (limited to 'plugin/protocol/http2/src/http2_stream.cpp')
| -rw-r--r-- | plugin/protocol/http2/src/http2_stream.cpp | 3 |
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; } |
