NGX_AGAIN and POST data

Brian Bruns brian.bruns at gmail.com
Tue Oct 7 21:17:03 MSD 2008


Hi Valery,

Thank you, that fixes that problem.

I'm a little unsure what I should be doing at the end of my post_handler.

When my code was in the main handler I returned with:

    return ngx_http_output_filter(r, &out);

Most examples of using ngx_http_read_client_request_body seem to be
upstream modules which really doesn't apply to my situation.  The DAV
module does this at the end of the post_handler
(ngx_http_dav_put_handler):

    ngx_http_finalize_request(r, ngx_http_send_header(r));
    return;

What is the correct thing to do at the end of the handler?  I've tried
both methods and neither seems to have any positive results.

Thanks again for all your help,

Brian

2008/10/6 Valery Kholodkov <valery+nginxen at grid.net.ru>:
>
>> I see the message in the log, so I know I returned from here with
>> NGX_AGAIN, but the request_body_handler never gets invoked.  Is there
>> some state I should be setting on the ngx_http_request_t before
>> returning control?
>
> post_handler is the state. It is being written into request. But you
> should return NGX_DONE as I wrote before.
>
> --
> Best regards,
> Valery Kholodkov
>
>
>





More information about the nginx mailing list