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?

November 07, 2011 11:36AM
I have a similar problem here.
My handler module in Nginx is supposed to intercept POST requests, analyse it and send response( the response body maybe larger than 64k).
Of course, I used ngx_http_read_client_request_body to register my request_body_handler.
The request_body_handler does some computing and calls ngx_http_output_filter(r,out) to send the response.
Here is the problem. If this response is less than 64k, it works fine. But if this response is larger than 64k, the ngx_http_output_filter will return NGX_AGAIN. However, since it's in the request_body_handler function and it has nothing to return. I can't figure out how to handle this NGX_AGAIN.

Can anyone help me out? Thanks a lot.
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: 225
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