Core: use c->log while closing connection.
c->pool is not destroyed here since c52408583801.
This commit is contained in:
parent
be67803206
commit
dee0a82d86
1 changed files with 1 additions and 4 deletions
|
@ -1191,10 +1191,7 @@ ngx_close_connection(ngx_connection_t *c)
|
||||||
level = NGX_LOG_CRIT;
|
level = NGX_LOG_CRIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we use ngx_cycle->log because c->log was in c->pool */
|
ngx_log_error(level, c->log, err, ngx_close_socket_n " %d failed", fd);
|
||||||
|
|
||||||
ngx_log_error(level, ngx_cycle->log, err,
|
|
||||||
ngx_close_socket_n " %d failed", fd);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue