summaryrefslogtreecommitdiffhomepage
path: root/src/event/modules/ngx_poll_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/modules/ngx_poll_module.c')
-rw-r--r--src/event/modules/ngx_poll_module.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/event/modules/ngx_poll_module.c b/src/event/modules/ngx_poll_module.c
index 8e3175a67..cba51e0e7 100644
--- a/src/event/modules/ngx_poll_module.c
+++ b/src/event/modules/ngx_poll_module.c
@@ -312,6 +312,13 @@ static int ngx_poll_process_events(ngx_log_t *log)
event_list[i].events, event_list[i].revents);
}
+ if (event_list[i].fd == -1) {
+
+ /* the disabled event, workaround for our possible bug */
+
+ continue;
+ }
+
c = &ngx_cycle->connections[event_list[i].fd];
if (c->fd == -1) {