mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 18:29:00 +08:00
QUIC: do not arm loss detection timer on packet threshold.
This commit is contained in:
parent
391abc00c9
commit
3b83a140ff
@ -3800,16 +3800,16 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
if (ngx_quic_resend_frames(c, ctx, start) != NGX_OK) {
|
||||
return NGX_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user