]> git.kaiwu.me - nginx.git/commitdiff
Fixed time comparison.
authorVladimir Homutov <vl@nginx.com>
Tue, 12 May 2020 15:45:44 +0000 (18:45 +0300)
committerVladimir Homutov <vl@nginx.com>
Tue, 12 May 2020 15:45:44 +0000 (18:45 +0300)
src/event/ngx_event_quic.c

index 2ebb72f245572881f5df2de1055fd1acc741fe96..156dfa51f42be91638ccbc0c457958723bd76deb 100644 (file)
@@ -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;