5 messages in ru.sysoev.nginxRe: How to handle NGX_AGAIN returned ...
FromSent OnAttachments
sayeo87Jun 29, 2009 3:33 pm 
Maxim DouninJun 29, 2009 4:20 pm 
Mike SmithJun 29, 2009 4:41 pm 
sayeo87Jun 30, 2009 10:29 am 
Valery KholodkovJul 1, 2009 8:52 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?Actions...
From:Valery Kholodkov (vale@grid.net.ru)
Date:Jul 1, 2009 8:52:06 am
List:ru.sysoev.nginx

Could you please show the code where you install the handler?

----- sayeo87 <ngin@nginx.us> wrote:

Thanks guys for your replies. I have previously looked at how NGX_AGAIN is
handled in the nginx source, and its along the lines of if
ngx_http_read_client_request_body returns anything other than NGX_OK, return
that from the module, otherwise return NGX_DONE. The problem is when I do this,
my module is never called again.

@Mike: I have tried what you described and it it promising in the sense that it
appears that my handler function (2nd arg to
ngx_http_read_client_request_body()) gets called again, but the handler function
never returns to the main-line code of the module. Is this supposed to be
expected behavior?

I'm just confused because the way this is handled in the Nginx source does not
seem to work, even though some people such as as
http://markmail.org/message/knchl7ricknggvws have had success with it.