ngx_http_limit_zone_conf_t *lzcf;
ngx_http_limit_zone_cleanup_t *lzcln;
+ if (r->limit_zone_set) {
+ return NGX_DECLINED;
+ }
+
lzcf = ngx_http_get_module_loc_conf(r, ngx_http_limit_zone_module);
if (lzcf->shm_zone == NULL) {
return NGX_DECLINED;
}
+ r->limit_zone_set = 1;
+
len = vv->len;
hash = ngx_crc32_short(vv->data, len);
#endif
+ /*
+ * instead of using the request context data in ngx_http_limit_zone_module
+ * we use the single bit in the request structure
+ */
+ unsigned limit_zone_set:1;
+
#if 0
unsigned cachable:1;
#endif