Handling large POST data in nginx module

Kubo Tatsuhiko lists at ruby-forum.com
Sun Mar 30 11:11:55 UTC 2014


> What I am seeing in my POST handler routine is, the incoming request
> size is 1377344 bytes. However, the file I am sending via curl command
> is 1420448 bytes. Where could I be losing the rest of the bytes ??

The incoming request buffer is not always completed reading when nginx's 
handler is called in some module.

You may look the function ngx_http_image_read in 
nginx/src/http/modules/ngx_http_image_filter_module.c as reference.


The key point is using NGX_AGAIN.

Posted via http://www.ruby-forum.com/.

More information about the nginx mailing list