[nginx] HTTP/2: use local pointer instead of r->connection.

Valentin Bartenev vbart at nginx.com
Tue Feb 16 14:50:16 UTC 2016


details:   http://hg.nginx.org/nginx/rev/b4c28876d2c3
branches:  
changeset: 6400:b4c28876d2c3
user:      Valentin Bartenev <vbart at nginx.com>
date:      Tue Feb 16 17:49:14 2016 +0300
description:
HTTP/2: use local pointer instead of r->connection.

No functional changes.

diffstat:

 src/http/v2/ngx_http_v2_filter_module.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 50fb3fd79f76 -r b4c28876d2c3 src/http/v2/ngx_http_v2_filter_module.c
--- a/src/http/v2/ngx_http_v2_filter_module.c	Mon Feb 15 17:41:52 2016 +0300
+++ b/src/http/v2/ngx_http_v2_filter_module.c	Tue Feb 16 17:49:14 2016 +0300
@@ -387,14 +387,14 @@ ngx_http_v2_header_filter(ngx_http_reque
         }
 
         if (header[i].key.len > NGX_HTTP_V2_MAX_FIELD) {
-            ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
+            ngx_log_error(NGX_LOG_CRIT, fc->log, 0,
                           "too long response header name: \"%V\"",
                           &header[i].key);
             return NGX_ERROR;
         }
 
         if (header[i].value.len > NGX_HTTP_V2_MAX_FIELD) {
-            ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
+            ngx_log_error(NGX_LOG_CRIT, fc->log, 0,
                           "too long response header value: \"%V: %V\"",
                           &header[i].key, &header[i].value);
             return NGX_ERROR;



More information about the nginx-devel mailing list