[nginx] Core: use c->log while closing connection.

Ruslan Ermilov ru at nginx.com
Wed Oct 5 10:58:18 UTC 2016


details:   http://hg.nginx.org/nginx/rev/631753428ecb
branches:  
changeset: 6726:631753428ecb
user:      Ruslan Ermilov <ru at nginx.com>
date:      Wed Oct 05 13:57:43 2016 +0300
description:
Core: use c->log while closing connection.

c->pool is not destroyed here since c52408583801.

diffstat:

 src/core/ngx_connection.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (15 lines):

diff -r 9b9ae81cd4f0 -r 631753428ecb src/core/ngx_connection.c
--- a/src/core/ngx_connection.c	Tue Oct 04 17:26:45 2016 +0300
+++ b/src/core/ngx_connection.c	Wed Oct 05 13:57:43 2016 +0300
@@ -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);
     }
 }
 



More information about the nginx-devel mailing list