tzssangglass commented on issue #7505:
URL: https://github.com/apache/apisix/issues/7505#issuecomment-1191027296

   > Another way of thinking is avoiding the execution of WAF blocks other 
requests' running. So why not add some `ngx.sleep(0)` hooks in your codes so 
that other requests can also get the chance to run during the WAF execution.
   
   IMO, `ngx.sleep(0)` does not solve the problem, I did not verify that could 
use `ngx.sleep(0)` during regular matching. (I remember that it is not possible)
   
   Perhaps we could use this: 
https://github.com/openresty/lua-nginx-module#ngxrun_worker_thread, let a 
dedicated worker handle it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to