mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 03:21:08 +00:00
QUIC: a bandaid for calculating ack_delay with non-monotonic time.
This commit is contained in:
parent
7bd3868715
commit
ee4a6024cc
1 changed files with 1 additions and 0 deletions
|
|
@ -2265,6 +2265,7 @@ ngx_quic_ack_delay(ngx_connection_t *c, struct timeval *received,
|
|||
ngx_gettimeofday(&tv);
|
||||
ack_delay = (tv.tv_sec - received->tv_sec) * 1000000
|
||||
+ tv.tv_usec - received->tv_usec;
|
||||
ack_delay = ngx_max(ack_delay, 0);
|
||||
ack_delay >>= c->quic->ctp.ack_delay_exponent;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue