Welcome! Log In Create A New Profile

Advanced

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

June 30, 2009 01:29PM
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 [i]if ngx_http_read_client_request_body returns anything other than NGX_OK, return that from the module, otherwise return NGX_DONE[/i]. 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.
Subject Author Posted

How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

sayeo87 June 29, 2009 06:33PM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

Maxim Dounin June 29, 2009 07:21PM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

Mike Smith June 29, 2009 07:42PM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

sayeo87 June 30, 2009 01:29PM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

Valery Kholodkov July 01, 2009 11:52AM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

CarlWang November 07, 2011 11:36AM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

Maxim Dounin November 07, 2011 12:50PM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

CarlWang November 07, 2011 11:31PM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

agentzh November 08, 2011 01:58AM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

CarlWang November 08, 2011 10:23AM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

CarlWang November 08, 2011 11:44AM

Re: How to handle NGX_AGAIN returned by ngx_http_read_client_request_body() within handler module?

agentzh November 08, 2011 08:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready