diff options
author | Roman Arutyunyan <arut@nginx.com> | 2025-03-10 12:19:25 +0400 |
---|---|---|
committer | Roman Arutyunyan <arutyunyan.roman@gmail.com> | 2025-04-15 19:01:36 +0400 |
commit | 1e883a40db98b70e422ff8e4d1d0e87e3f8ccaa5 (patch) | |
tree | 2eb1f21e6e3cad971c16534c482b21f0cadc633e /src/os/unix/ngx_thread_cond.c | |
parent | 38236bf74f3e5728eeea488bef381c61842ac1d2 (diff) | |
download | nginx-1e883a40db98b70e422ff8e4d1d0e87e3f8ccaa5.tar.gz nginx-1e883a40db98b70e422ff8e4d1d0e87e3f8ccaa5.zip |
QUIC: ngx_msec_t overflow protection.
On some systems the value of ngx_current_msec is derived from monotonic
clock, for which the following is defined by POSIX:
For this clock, the value returned by clock_gettime() represents
the amount of time (in seconds and nanoseconds) since an unspecified
point in the past.
As as result, overflow protection is needed when comparing two ngx_msec_t.
The change adds such protection to the ngx_quic_detect_lost() function.
Diffstat (limited to 'src/os/unix/ngx_thread_cond.c')
0 files changed, 0 insertions, 0 deletions