summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-01-03 15:04:58 +0800
committerluwenpeng <[email protected]>2024-01-03 19:48:49 +0800
commit6f07c2a8bf1ca7fad3d9046cdb61da3c64965a02 (patch)
tree09c4d1af067c7196ae564b712a658d78dd3e4291
parentdae38c5144b391efb074e08ffdc5c1c69d5a8ad2 (diff)
bugfix: CMSG log update flag
-rw-r--r--platform/src/tcp_stream.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/src/tcp_stream.cpp b/platform/src/tcp_stream.cpp
index 439908b..0e5ff46 100644
--- a/platform/src/tcp_stream.cpp
+++ b/platform/src/tcp_stream.cpp
@@ -717,6 +717,7 @@ static void __stream_bev_readcb(struct bufferevent * bev, void * arg)
{
TFE_PROXY_STAT_INCREASE(STAT_STREAM_INTERCEPT, 1);
_stream->is_first_call_rxcb = 1;
+ tfe_cmsg_set_flag(_stream->cmsg, TFE_CMSG_FLAG_USER0);
}
outbuf = bufferevent_get_output(peer_conn->bev);
@@ -1232,8 +1233,6 @@ void ssl_downstream_create_on_success(future_result_t * result, void * user)
TFE_PROXY_STAT_INCREASE(STAT_STEERING_SSL_CONN, 1);
}
- tfe_cmsg_set_flag(_stream->cmsg, TFE_CMSG_FLAG_USER0);
-
return;
}