avoid endless loop if epoll is used
Igor Sysoev
14 years ago
1 changed file(s) with
5 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+5
-0
src/os/unix/ngx_process_cycle.c
less
more
1058
1058
ngx_log_debug1(NGX_LOG_DEBUG_CORE, ev->log, 0, "channel: %i", n);
1059
1059
1060
1060
if (n == NGX_ERROR) {
1061
1062
if (ngx_event_flags & NGX_USE_EPOLL_EVENT) {
1063
ngx_del_conn(c, 0);
1064
}
1065
1061
1066
ngx_close_connection(c);
1062
1067
return;
1063
1068
}