Hi,

I think there is a bug in the post_buffering handling in the stable version.

I use uwsgi with nginx and when the post size is greater than
post_buffering option the post is not readable.

I've looked at the code and I've seen that the post_remains variable is
initialized with the content_length before the content_length is parsed.


I correct this with the patch joined and it's working now.

Thanks for you job.

Sébastien HEITZMANN
www.2le.net

diff uwsgi-0.9.6.6.orig/wsgi_handlers.c uwsgi-0.9.6.6/wsgi_handlers.c
83c83
< 	size_t post_remains = wsgi_req->post_cl;
---
> 	size_t post_remains;
283a284
> 	        post_remains = wsgi_req->post_cl;
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to