openresty / echo-nginx-module

An Nginx module for bringing the power of "echo", "sleep", "time" and more to Nginx's config file
http://wiki.nginx.org/NginxHttpEchoModule
BSD 2-Clause "Simplified" License
1.17k stars 254 forks source link

`r->main->count` may become zero under some fault situation #27

Closed duhoobo closed 10 years ago

duhoobo commented 10 years ago

Under Nginx 1.4.2, ngx_http_read_client_request_body will decrease r->main->count if rc >= NGX_HTTP_SPECIAL_RESPONSE, and then ngx_http_echo_handler decreases it again.

agentzh commented 10 years ago

Thank you for the report! Already fixed in master :)