From 2b8786afe81c797d207fe6a32174e4e383026e05 Mon Sep 17 00:00:00 2001 From: Vladimir Homutov Date: Tue, 12 May 2020 18:45:44 +0300 Subject: [PATCH] Fixed time comparison. --- src/event/ngx_event_quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 2ebb72f24..156dfa51f 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -3262,7 +3262,7 @@ ngx_quic_retransmit(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx, 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;