nginx / njs

A subset of JavaScript language to use in nginx
http://nginx.org/en/docs/njs/
BSD 2-Clause "Simplified" License
1.14k stars 148 forks source link

ngx.shared.SharedDict.clear() hangs when called on an empty dict #699

Closed NetForce1 closed 6 months ago

NetForce1 commented 6 months ago

When calling clear() on a shared dict, the request hangs in njs 0.8.3. A dict with items is properly cleared.

xeioex commented 6 months ago

Hi @NetForce1,

I confirm the issue, it will be fixed. As a workaround for 0.8.3 add timeout=10000000 to your js_shared_dict_zone directive.