mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 18:13:01 +08:00
Put zero in 'First ACK Range' when acknowledging one packet.
This fixes Chrome CONNECTION_ID_LIMIT_ERROR with the reason: "Underflow with first ack block length 2 largest acked is 1".
This commit is contained in:
parent
f4562d7ed9
commit
77a4c2d172
@ -1104,7 +1104,7 @@ ngx_quic_create_ack(u_char *p, ngx_quic_ack_frame_t *ack)
|
||||
len += ngx_quic_varint_len(ack->pn);
|
||||
len += ngx_quic_varint_len(0);
|
||||
len += ngx_quic_varint_len(0);
|
||||
len += ngx_quic_varint_len(ack->pn);
|
||||
len += ngx_quic_varint_len(0);
|
||||
|
||||
return len;
|
||||
}
|
||||
@ -1115,7 +1115,7 @@ ngx_quic_create_ack(u_char *p, ngx_quic_ack_frame_t *ack)
|
||||
ngx_quic_build_int(&p, ack->pn);
|
||||
ngx_quic_build_int(&p, 0);
|
||||
ngx_quic_build_int(&p, 0);
|
||||
ngx_quic_build_int(&p, ack->pn);
|
||||
ngx_quic_build_int(&p, 0);
|
||||
|
||||
return p - start;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user