Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic.c @ 8286:3956bbf91002 quic
QUIC: use server ack_delay_exponent when sending ack.
Previously, client one was used.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 04 Feb 2021 14:35:36 +0300 |
parents | 0697294f79a4 |
children | cef042935003 |
comparison
equal
deleted
inserted
replaced
8285:0697294f79a4 | 8286:3956bbf91002 |
---|---|
3171 | 3171 |
3172 qc = ngx_quic_get_connection(c); | 3172 qc = ngx_quic_get_connection(c); |
3173 | 3173 |
3174 ack_delay = ngx_current_msec - ctx->largest_received; | 3174 ack_delay = ngx_current_msec - ctx->largest_received; |
3175 ack_delay *= 1000; | 3175 ack_delay *= 1000; |
3176 ack_delay >>= qc->ctp.ack_delay_exponent; | 3176 ack_delay >>= qc->tp.ack_delay_exponent; |
3177 | 3177 |
3178 frame = ngx_quic_alloc_frame(c); | 3178 frame = ngx_quic_alloc_frame(c); |
3179 if (frame == NULL) { | 3179 if (frame == NULL) { |
3180 return NGX_ERROR; | 3180 return NGX_ERROR; |
3181 } | 3181 } |