The official NGINX Open Source repository.
Go to file
Maxim Dounin 17c24244b4 Cache: fixed race in ngx_http_file_cache_forced_expire().
During configuration reload two cache managers might exist for a short
time.  If both tried to delete the same cache node, the "ignore long locked
inactive cache entry" alert appeared in logs.  Additionally,
ngx_http_file_cache_forced_expire() might be also called by worker
processes, with similar results.

Fix is to ignore cache nodes being deleted, similarly to how it is
done in ngx_http_file_cache_expire() since 3755:76e3a93821b1.  This
was somehow missed in 7002:ab199f0eb8e8, when ignoring long locked
cache entries was introduced in ngx_http_file_cache_forced_expire().
2022-02-01 16:29:28 +03:00
auto Core: added autotest for UDP segmentation offloading. 2022-01-26 20:40:00 +03:00
conf MIME: added image/avif type. 2021-10-25 20:49:15 +03:00
contrib Contrib: vim syntax adjusted to save cpoptions (ticket #2276). 2022-01-22 00:28:51 +03:00
docs nginx-1.21.6-RELEASE 2022-01-25 18:03:51 +03:00
misc Updated OpenSSL and PCRE used for win32 builds. 2021-12-28 17:56:16 +03:00
src Cache: fixed race in ngx_http_file_cache_forced_expire(). 2022-02-01 16:29:28 +03:00
.hgtags release-1.21.6 tag 2022-01-25 18:03:52 +03:00