Hello!
On Tue, Jul 22, 2014 at 6:51 PM, chen wrote:
> But from the test case I wrote,it seems that ngx_http_finalize_request
> can not handle NGX_AGAIN correctly and the curl staled forever. Any advises
> on what I should do then?
My mistake. Those nginx upstream modules always return NGX_DONE in
their content handler function, so as to decrement the r->main->count
reference counting that was incremented in
ngx_http_read_client_request_body (in ngx_http_finalize_request),
unless for error cases (rc >= NGX_HTTP_SPECIAL_RESPONSE) where
ngx_http_read_client_request_body decrements r->main->count itself.
All these are obvious from the C source (sorry, I was too lazy to
check out the source when writing my previous mail).
> Should I just use a separate content phase handler instead of a
> clcf>handler?
>
Sorry, I cannot understand this question.
Continue cc'ing the list. Let me re-emphasize: please move such
discussions to the list.
Regards,
-agentzh