# HG changeset patch # User Sergey Kandaurov # Date 1603278202 -3600 # Node ID d8a0bb1e85bfdca484fe8cb90965c19a7547d896 # Parent f948945c1a1c528d1e6b120b7892a9b5a6babef4 QUIC: simplified ngx_quic_create_long_header(). As seen in the quic-transport draft, which this implementation follows: Initial packets sent by the server MUST set the Token Length field to zero. diff --git a/src/event/ngx_event_quic_transport.c b/src/event/ngx_event_quic_transport.c --- a/src/event/ngx_event_quic_transport.c +++ b/src/event/ngx_event_quic_transport.c @@ -433,7 +433,7 @@ ngx_quic_create_long_header(ngx_quic_hea p = ngx_cpymem(p, pkt->scid.data, pkt->scid.len); if (pkt->level == ssl_encryption_initial) { - ngx_quic_build_int(&p, pkt->token.len); + ngx_quic_build_int(&p, 0); } ngx_quic_build_int(&p, pkt_len + pkt->num_len);