ngx_http_read_client_request_body() causing random timeouts

Srebrenko Šehić ssehic at gmail.com
Tue May 31 12:43:43 MSD 2011


On Tue, May 31, 2011 at 10:28 AM, agentzh <agentzh at gmail.com> wrote:

>>    ctx = ngx_palloc(r->pool, sizeof(ngx_http_dummy_post_read_ctx_t));
>>
>
> I think you should have used ngx_pcalloc here instead of ngx_palloc so
> as to initialize the bytes properly ;) We're using ngx_pcalloc
> correctly here in ngx_form_input.

Wonderful catch! It solved my problem.

Thanks a bunch. Highly appreciated!

Cheers,
Srebrenko



More information about the nginx-devel mailing list