aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_resolver.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2021-03-28 17:45:29 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2021-03-28 17:45:29 +0300
commitfd0546aa33d2b28fc89753c15439f356485ad845 (patch)
tree133627774de6b6c1baea049a4eb20cf96b347fd1 /src/core/ngx_resolver.c
parentc108f04e85a15f4e1cc700b41999a92ce09a889d (diff)
downloadnginx-fd0546aa33d2b28fc89753c15439f356485ad845.tar.gz
nginx-fd0546aa33d2b28fc89753c15439f356485ad845.zip
Events: fixed "port_dissociate() failed" alerts with eventport.
If an attempt is made to delete an event which was already reported, port_dissociate() returns an error. Fix is avoid doing anything if ev->active is not set. Possible alternative approach would be to avoid calling ngx_del_event() at all if ev->active is not set. This approach, however, will require something else to re-add the other event of the connection, since both read and write events are dissociated if an event is reported on a file descriptor. Currently ngx_eventport_del_event() re-associates write event if called to delete read event, and vice versa.
Diffstat (limited to 'src/core/ngx_resolver.c')
0 files changed, 0 insertions, 0 deletions