Welcome! Log In Create A New Profile

Advanced

Question about ngx_handle_write_event

July 01, 2019 03:24PM
Hi all,

Something is unclear to me regarding the use of this function, the development guide says -
"the functions ngx_handle_read_event(rev, flags) and ngx_handle_write_event(wev, lowat)
must be called after handling an I/O socket notification or calling any I/O functions on that socket"

If my module finished sending all the data it had, and is now waiting for more data to arrive
(on some other socket) does it still have to call ngx_handle_write_event?

I'm currently calling this function unconditionally at the end of the write handler, and I'm seeing
the handler being called even when it has nothing to do, so thought maybe I'm doing something
wrong...

Thank you,

Eran
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Question about ngx_handle_write_event

erankor 651 July 01, 2019 03:24PM

Re: Question about ngx_handle_write_event

Maxim Dounin 322 July 02, 2019 09:06PM

RE: Question about ngx_handle_write_event

erankor 451 July 17, 2019 10:36AM

Re: Question about ngx_handle_write_event

Maxim Dounin 332 July 17, 2019 12:04PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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