mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
disable pair event on POLLREMOVE
This commit is contained in:
parent
2b5edcc3e6
commit
89884a0a84
1 changed files with 6 additions and 0 deletions
|
|
@ -255,6 +255,12 @@ ngx_devpoll_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags)
|
|||
ev->active = 0;
|
||||
|
||||
if (flags & NGX_CLOSE_EVENT) {
|
||||
e = (event == POLLIN) ? c->write : c->read;
|
||||
|
||||
if (e) {
|
||||
e->active = 0;
|
||||
}
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue