Klaus Demo nginx / c6aebf6
Events: handle only active events in eventport. We generate both read and write events if an error event was returned by port_getn() without POLLIN/POLLOUT, but we should not try to handle inactive events, they may even have no handler. Valentin Bartenev 9 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
529529 rev = c->read;
530530 wev = c->write;
531531
532 if (!rev->active) {
533 revents &= ~POLLIN;
534 }
535
536 if (!wew->active) {
537 revents &= ~POLLOUT;
538 }
539
532540 rev->active = 0;
533541 wev->active = 0;
534542