Hello.

> 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.

http://hg.nginx.org/nginx/file/a24f88eff684/src/http/modules/ngx_http_image_filter_module.c#l451

The key point is using NGX_AGAIN.

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

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to