comparison 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
comparison
equal deleted inserted replaced
8387:eebdda507ec3 8388:a9cc1627cf1c
3260 3260
3261 /* send frames with same packet number to the wire */ 3261 /* send frames with same packet number to the wire */
3262 do { 3262 do {
3263 f = ngx_queue_data(q, ngx_quic_frame_t, queue); 3263 f = ngx_queue_data(q, ngx_quic_frame_t, queue);
3264 3264
3265 if (start->first + qc->tp.max_idle_timeout < now) { 3265 if (now - start->first > qc->tp.max_idle_timeout) {
3266 ngx_log_error(NGX_LOG_ERR, c->log, 0, 3266 ngx_log_error(NGX_LOG_ERR, c->log, 0,
3267 "quic retransmission timeout"); 3267 "quic retransmission timeout");
3268 return NGX_DECLINED; 3268 return NGX_DECLINED;
3269 } 3269 }
3270 3270