aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-09-17 16:32:23 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-09-17 16:32:23 +0300
commit0f3eb180d2af781c98b84c1e5e2b4fe4c0c3be54 (patch)
tree11294d95f470862735e65c0d6614859bf46c3c64 /src/http/ngx_http_request.c
parent00bb4e4b8d2c6fa9a9323b158cfc22071b848e87 (diff)
downloadnginx-0f3eb180d2af781c98b84c1e5e2b4fe4c0c3be54.tar.gz
nginx-0f3eb180d2af781c98b84c1e5e2b4fe4c0c3be54.zip
HTTP/3: make ngx_http_log_error() static again.
This function was only referenced from ngx_http_v3_create_push_request() to initialize push connection log. Now the log handler is copied from the parent request connection. The change reduces diff to the default branch.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 30200075e..2b838cfc3 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -50,6 +50,7 @@ static void ngx_http_lingering_close_handler(ngx_event_t *ev);
static ngx_int_t ngx_http_post_action(ngx_http_request_t *r);
static void ngx_http_log_request(ngx_http_request_t *r);
+static u_char *ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len);
static u_char *ngx_http_log_error_handler(ngx_http_request_t *r,
ngx_http_request_t *sr, u_char *buf, size_t len);
@@ -3829,7 +3830,7 @@ ngx_http_close_connection(ngx_connection_t *c)
}
-u_char *
+static u_char *
ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len)
{
u_char *p;