mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
avoid endless loop if epoll is used
This commit is contained in:
parent
5fe93ee95f
commit
bb7c84159f
@ -1059,6 +1059,11 @@ ngx_channel_handler(ngx_event_t *ev)
|
|||||||
ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %i", n);
|
ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %i", n);
|
||||||
|
|
||||||
if (n == NGX_ERROR) {
|
if (n == NGX_ERROR) {
|
||||||
|
|
||||||
|
if (ngx_event_flags & NGX_USE_EPOLL_EVENT) {
|
||||||
|
ngx_del_conn(c, 0);
|
||||||
|
}
|
||||||
|
|
||||||
ngx_close_connection(c);
|
ngx_close_connection(c);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user