summaryrefslogtreecommitdiff
path: root/plugin/protocol/http2/src/http2_stream.cpp
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2023-08-02 16:55:56 +0800
committerfengweihao <[email protected]>2023-08-02 16:55:56 +0800
commite43b4954b5b75ef5dd27974073b691a68bdbf9f7 (patch)
treeaa9c528b504f87414fd428cdbb895a070b5df270 /plugin/protocol/http2/src/http2_stream.cpp
parent2451bd795c801ac4bf961a28978fdf8a34dfcbfc (diff)
TSG-16126 修复Proxy Events日志中存在c2s和s2c有字节数为0的问题
Diffstat (limited to 'plugin/protocol/http2/src/http2_stream.cpp')
-rw-r--r--plugin/protocol/http2/src/http2_stream.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/protocol/http2/src/http2_stream.cpp b/plugin/protocol/http2/src/http2_stream.cpp
index c96e0fa..13e37e8 100644
--- a/plugin/protocol/http2/src/http2_stream.cpp
+++ b/plugin/protocol/http2/src/http2_stream.cpp
@@ -1928,7 +1928,9 @@ static int http2_on_stream_close(nghttp2_session *session, const nghttp2_frame *
h2_session = TAILQ_LIST_FIND(h2_stream_info, stream_id);
if (!h2_session)
- return 0;
+ {
+ return 0;
+ }
if (error_code != 0){
const char *str = (dir == CONN_DIR_UPSTREAM) ? "Simulation s" : "Simulation c";
TFE_LOG_DEBUG(logger()->handle, "%s close, id = %d, error_code = %d", str,