Welcome! Log In Create A New Profile

Advanced

when EPOLLIN and EPOLLOUT returned

yurnerola@gmail.com
July 29, 2013 02:32AM
Hi,all
I find it hard to understand in function ngx_epoll_process_events as following.
if ((revents & (EPOLLERR|EPOLLHUP))
&& (revents & (EPOLLIN|EPOLLOUT)) == 0)
{
/*
* if the error events were returned without EPOLLIN or EPOLLOUT,
* then add these flags to handle the events at least in one
* active handler
*/

revents |= EPOLLIN|EPOLLOUT;
}
As the comment said we should check if ((revents & (EPOLLERR|EPOLLHUP))==0) that we can end the connection when EPOLLERR and EPOLLHUP is returned.
,but why not this? Help...



yurnerola@gmail.com_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

when EPOLLIN and EPOLLOUT returned

yurnerola@gmail.com 1309 July 29, 2013 02:32AM

Re: when EPOLLIN and EPOLLOUT returned

Maxim Dounin 513 July 29, 2013 09:18AM



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

Online Users

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