mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
avoid endless loop if epoll is used
This commit is contained in:
parent
5fe93ee95f
commit
bb7c84159f
1 changed files with 5 additions and 0 deletions
|
|
@ -1059,6 +1059,11 @@ ngx_channel_handler(ngx_event_t *ev)
|
|||
ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %i", n);
|
||||
|
||||
if (n == NGX_ERROR) {
|
||||
|
||||
if (ngx_event_flags & NGX_USE_EPOLL_EVENT) {
|
||||
ngx_del_conn(c, 0);
|
||||
}
|
||||
|
||||
ngx_close_connection(c);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue