ngx_http_geoip2_module icon indicating copy to clipboard operation
ngx_http_geoip2_module copied to clipboard

Stale data after auto_reload on same IP lookup

Open dark264sh opened this issue 8 months ago • 0 comments

After auto-reloading the MMDB, clear the cached 'database->address'. If not cleared, a subsequent lookup for the same IP would reuse the stale 'database->result' (containing pointers/offsets from the old DB), leading to incorrect data retrieval from the new DB instance.

https://github.com/leev/ngx_http_geoip2_module/issues/134

dark264sh avatar May 07 '25 02:05 dark264sh