Loading src/quic.cpp +11 −0 Changes for src/quic.cpp: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -350,6 +350,17 @@ ssize_t quic::sendPacket(const uint8_t* data, size_t len) { } QUIC_DBG("sendPacket: len=%zu parent=%p _Socket=%d", len, (void*)_parent, _Socket); if (getenv("QUIC_TRACE")) { std::string hex; size_t dump_len = std::min<size_t>(len, 64); char byte_buf[4]; for (size_t i = 0; i < dump_len; ++i) { std::snprintf(byte_buf, sizeof(byte_buf), "%02x", data[i]); hex += byte_buf; } QUIC_DBG("sendPacket: is_server=%d app_pn_send=%llu bytes[0..%zu]=%s", (int)_is_server, (unsigned long long)_app_pn_send, dump_len, hex.c_str()); } for (int attempt = 0; attempt < 5; ++attempt) { buffer send_buf(reinterpret_cast<const char*>(data), len); Loading Loading
src/quic.cpp +11 −0 Changes for src/quic.cpp: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -350,6 +350,17 @@ ssize_t quic::sendPacket(const uint8_t* data, size_t len) { } QUIC_DBG("sendPacket: len=%zu parent=%p _Socket=%d", len, (void*)_parent, _Socket); if (getenv("QUIC_TRACE")) { std::string hex; size_t dump_len = std::min<size_t>(len, 64); char byte_buf[4]; for (size_t i = 0; i < dump_len; ++i) { std::snprintf(byte_buf, sizeof(byte_buf), "%02x", data[i]); hex += byte_buf; } QUIC_DBG("sendPacket: is_server=%d app_pn_send=%llu bytes[0..%zu]=%s", (int)_is_server, (unsigned long long)_app_pn_send, dump_len, hex.c_str()); } for (int attempt = 0; attempt < 5; ++attempt) { buffer send_buf(reinterpret_cast<const char*>(data), len); Loading