Welcome! Log In Create A New Profile

Advanced

Re: Helloo,do anyone has this situation?

Maxim Dounin
April 16, 2015 09:44AM
Hello!

On Thu, Apr 16, 2015 at 06:02:16PM +0800, cruze guo wrote:

[...]

> but ,the (struct ngx_http_request_s) 's write_event_handler will be
> set to ngx_http_request_empty_handler.
>
> in ngx_http_request_body.c
> function ngx_http_read_client_request_body
> r->write_event_handler = ngx_http_request_empty_handler;
>
> It mean nothing will handle the next step,when you read all client
> request body!!

Write event handler is used to handle write events, and there is no need
to set it unless nginx is writing something. While nginx is reading
a request body, it only needs read event handler to process new data
from a client.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Helloo,do anyone has this situation?

cruze guo April 16, 2015 06:04AM

Re: Helloo,do anyone has this situation?

Maxim Dounin April 16, 2015 09:44AM

Re: Helloo,do anyone has this situation?

cruze guo April 16, 2015 10:28PM

Re: Helloo,do anyone has this situation?

Maxim Dounin April 17, 2015 09:34AM

Re: Helloo,do anyone has this situation?

cruze guo April 21, 2015 02:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 184
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