Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Nginx Improved response body filter, issue #56 might be fixed #67
added a commit
this pull request
Apr 9, 2013
Looks like we still have the CPU issue. I inserted some debug messages and many requests are returning in ngx_http_modsecurity_body_filter() here:
You can trigger is sending ab -n 1000 -c 10 http://your_ip/index.html (a html page with images).
Could this be the cause of 100% CPU issue ?
When the issue is triggered... the modsecurity debug.log stop here:
[11/May/2013:10:36:54 --0700] [/sid#a04f618][rid#a1239c0][/catalog/index.html] Transformation completed in 1 usec.
So ... it does not follow the execution like a normal transaction:
[11/May/2013:10:35:07 --0700] [/sid#a04f618][rid#a1239c0][/catalog/index.html] Transformation completed in 1 usec.
I'm trying to create a new ngx_buf_t to send to brigade instead of chain->buf in move_chain_to_brigade.. to see if memory leaks disappears:
However i'm seeing in the modsecurity log:
[12/May/2013:23:26:17 --0700] [/sid#9af2618][rid#9b3b780][/catalog/index2.html] Output filter: Bucket type NGINX contains 0 bytes.
I think i 'm missing some detail