diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index 3d198be8a..f95d6e9a5 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -1054,7 +1054,7 @@ ngx_channel_handler(ngx_event_t *ev) if (n == NGX_ERROR) { - ngx_free_connection(c); + ngx_close_connection(c); fd = c->fd; c->fd = (ngx_socket_t) -1;