Skip to content

Commit

Permalink
Core: use c->log while closing connection.
Browse files Browse the repository at this point in the history
c->pool is not destroyed here since c52408583801.
  • Loading branch information
mdocguard committed Oct 5, 2016
1 parent 3c44339 commit f9430de
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/ngx_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,10 +1191,7 @@ ngx_close_connection(ngx_connection_t *c)
level = NGX_LOG_CRIT;
}

/* we use ngx_cycle->log because c->log was in c->pool */

ngx_log_error(level, ngx_cycle->log, err,
ngx_close_socket_n " %d failed", fd);
ngx_log_error(level, c->log, err, ngx_close_socket_n " %d failed", fd);
}
}

Expand Down

0 comments on commit f9430de

Please sign in to comment.