Mercurial > hg > nginx
diff src/event/ngx_event_quic.c @ 8388:a9cc1627cf1c quic
Fixed time comparison.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 12 May 2020 18:45:44 +0300 |
parents | eebdda507ec3 |
children | 5ffb21c5c93d |
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c Thu May 14 14:49:28 2020 +0300 +++ b/src/event/ngx_event_quic.c Tue May 12 18:45:44 2020 +0300 @@ -3262,7 +3262,7 @@ do { f = ngx_queue_data(q, ngx_quic_frame_t, queue); - if (start->first + qc->tp.max_idle_timeout < now) { + if (now - start->first > qc->tp.max_idle_timeout) { ngx_log_error(NGX_LOG_ERR, c->log, 0, "quic retransmission timeout"); return NGX_DECLINED;