Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.c @ 8054:355e079c5eee quic
QUIC: do not arm loss detection timer on packet threshold.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 19 Aug 2020 13:24:53 +0300 |
parents | 4e3a71621c9a |
children | 924882f42dea |
comparison
equal
deleted
inserted
replaced
8053:4e3a71621c9a | 8054:355e079c5eee |
---|---|
3798 | 3798 |
3799 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, c->log, 0, | 3799 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, c->log, 0, |
3800 "quic detect_lost pnum:%ui thr:%M wait:%i level:%d", | 3800 "quic detect_lost pnum:%ui thr:%M wait:%i level:%d", |
3801 start->pnum, thr, (ngx_int_t) wait, start->level); | 3801 start->pnum, thr, (ngx_int_t) wait, start->level); |
3802 | 3802 |
3803 if ((ngx_msec_int_t) wait > 0) { | 3803 if ((ngx_msec_int_t) wait > 0 |
3804 && ctx->largest_ack - start->pnum < NGX_QUIC_PKT_THR) | |
3805 { | |
3804 | 3806 |
3805 if (min_wait == 0 || wait < min_wait) { | 3807 if (min_wait == 0 || wait < min_wait) { |
3806 min_wait = wait; | 3808 min_wait = wait; |
3807 } | 3809 } |
3808 | 3810 |
3809 if (ctx->largest_ack - start->pnum < NGX_QUIC_PKT_THR) { | 3811 break; |
3810 break; | |
3811 } | |
3812 } | 3812 } |
3813 | 3813 |
3814 if (ngx_quic_resend_frames(c, ctx, start) != NGX_OK) { | 3814 if (ngx_quic_resend_frames(c, ctx, start) != NGX_OK) { |
3815 return NGX_ERROR; | 3815 return NGX_ERROR; |
3816 } | 3816 } |