mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 03:21:08 +00:00
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.
This commit is contained in:
parent
a47a4400b8
commit
fe2c392551
1 changed files with 1 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ ngx_quic_create_long_header(ngx_quic_header_t *pkt, u_char *out,
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue