aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2020-05-12 18:45:44 +0300
committerVladimir Homutov <vl@nginx.com>2020-05-12 18:45:44 +0300
commit6f7477f6c66bc54d630cbba16ea2e6cb71ef58e6 (patch)
tree48017b4cf73d18d48b401851544c28f4a854aa24 /src
parent5ccda6882e9f72b9df01fa4b9403376f0899addc (diff)
downloadnginx-6f7477f6c66bc54d630cbba16ea2e6cb71ef58e6.tar.gz
nginx-6f7477f6c66bc54d630cbba16ea2e6cb71ef58e6.zip
Fixed time comparison.
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_quic.c2
1 files changed, 1 insertions, 1 deletions
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;