mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 22:09:01 +08:00
QUIC: do not arm loss detection timer on packet threshold.
This commit is contained in:
parent
391abc00c9
commit
3b83a140ff
@ -3800,15 +3800,15 @@ ngx_quic_detect_lost(ngx_connection_t *c)
|
||||
"quic detect_lost pnum:%ui thr:%M wait:%i level:%d",
|
||||
start->pnum, thr, (ngx_int_t) wait, start->level);
|
||||
|
||||
if ((ngx_msec_int_t) wait > 0) {
|
||||
if ((ngx_msec_int_t) wait > 0
|
||||
&& ctx->largest_ack - start->pnum < NGX_QUIC_PKT_THR)
|
||||
{
|
||||
|
||||
if (min_wait == 0 || wait < min_wait) {
|
||||
min_wait = wait;
|
||||
}
|
||||
|
||||
if (ctx->largest_ack - start->pnum < NGX_QUIC_PKT_THR) {
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (ngx_quic_resend_frames(c, ctx, start) != NGX_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user