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:
Roman Arutyunyan 2020-03-23 15:32:24 +03:00
parent f4562d7ed9
commit 77a4c2d172

View File

@ -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;
}