Skip to content

Commit

Permalink
Print send noise length
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Nov 23, 2023
1 parent 2408d22 commit a5ea586
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2120,6 +2120,11 @@ R"x*x*x(<html>
std::vector<uint8_t> noise =
generate_noise(nosie_injection_max_len, global_known_proto);

XLOG_DBG << "connection id: "
<< m_connection_id
<< ", send noise to upstream, length: "
<< noise.size();

// 发送 noise 数据.
co_await net::async_write(
socket,
Expand Down Expand Up @@ -3539,6 +3544,11 @@ R"x*x*x(<html>
std::vector<uint8_t> noise =
generate_noise(nosie_injection_max_len, global_known_proto);

XLOG_DBG << "connection id: "
<< connection_id
<< ", send noise, length: "
<< noise.size();

// 发送 noise 消息.
co_await net::async_write(
socket,
Expand Down

0 comments on commit a5ea586

Please sign in to comment.