Loading src/quic.cpp +15 −6 Changes for src/quic.cpp: 15 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -43,12 +43,7 @@ #include <cstdio> #include <cmath> #define QUIC_DBG(fmt, ...) do { \ if (getenv("QUIC_TRACE")) { \ fprintf(stderr, "[%.6f] " fmt "\n", \ std::chrono::duration<double>(std::chrono::steady_clock::now().time_since_epoch()).count(), ##__VA_ARGS__); \ } \ } while(0) #define QUIC_DBG(fmt, ...) do { } while(0) namespace netplus { Loading Loading @@ -3022,6 +3017,20 @@ std::vector<uint8_t> quic::buildTransportParameters() { params.insert(params.end(), cid_len_buf, cid_len_buf + cid_len_size); params.insert(params.end(), _local_cid.begin(), _local_cid.end()); // retry_source_connection_id (0x10) — RFC 9000 §18.2: MUST be sent // whenever this connection was created via a Retry, containing the // SCID this server put on that Retry packet (see _retry_scid's // comment in socket.h for why it's already sitting there with exactly // that value, no extra bookkeeping needed). if (_is_server && !_retry_scid.empty()) { params.push_back(0x10); uint8_t rscid_len_buf[8]; size_t rscid_len_size = encodeVarInt(_retry_scid.size(), rscid_len_buf); params.insert(params.end(), rscid_len_buf, rscid_len_buf + rscid_len_size); params.insert(params.end(), _retry_scid.begin(), _retry_scid.end()); } // initial_max_data (0x04) params.push_back(0x04); uint8_t max_data_buf[8]; Loading Loading
src/quic.cpp +15 −6 Changes for src/quic.cpp: 15 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -43,12 +43,7 @@ #include <cstdio> #include <cmath> #define QUIC_DBG(fmt, ...) do { \ if (getenv("QUIC_TRACE")) { \ fprintf(stderr, "[%.6f] " fmt "\n", \ std::chrono::duration<double>(std::chrono::steady_clock::now().time_since_epoch()).count(), ##__VA_ARGS__); \ } \ } while(0) #define QUIC_DBG(fmt, ...) do { } while(0) namespace netplus { Loading Loading @@ -3022,6 +3017,20 @@ std::vector<uint8_t> quic::buildTransportParameters() { params.insert(params.end(), cid_len_buf, cid_len_buf + cid_len_size); params.insert(params.end(), _local_cid.begin(), _local_cid.end()); // retry_source_connection_id (0x10) — RFC 9000 §18.2: MUST be sent // whenever this connection was created via a Retry, containing the // SCID this server put on that Retry packet (see _retry_scid's // comment in socket.h for why it's already sitting there with exactly // that value, no extra bookkeeping needed). if (_is_server && !_retry_scid.empty()) { params.push_back(0x10); uint8_t rscid_len_buf[8]; size_t rscid_len_size = encodeVarInt(_retry_scid.size(), rscid_len_buf); params.insert(params.end(), rscid_len_buf, rscid_len_buf + rscid_len_size); params.insert(params.end(), _retry_scid.begin(), _retry_scid.end()); } // initial_max_data (0x04) params.push_back(0x04); uint8_t max_data_buf[8]; Loading