aboutsummaryrefslogtreecommitdiff
path: root/src/event/modules/ngx_eventport_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/modules/ngx_eventport_module.c')
-rw-r--r--src/event/modules/ngx_eventport_module.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/event/modules/ngx_eventport_module.c b/src/event/modules/ngx_eventport_module.c
index 5f9cf4e35..860f5985c 100644
--- a/src/event/modules/ngx_eventport_module.c
+++ b/src/event/modules/ngx_eventport_module.c
@@ -530,6 +530,14 @@ ngx_eventport_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
rev = c->read;
wev = c->write;
+ if (!rev->active) {
+ revents &= ~POLLIN;
+ }
+
+ if (!wew->active) {
+ revents &= ~POLLOUT;
+ }
+
rev->active = 0;
wev->active = 0;