comparison src/http/ngx_http_request.c @ 8618:6a383020d61e quic

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.
author Roman Arutyunyan <arut@nginx.com>
date Fri, 17 Sep 2021 16:32:23 +0300
parents fac88e160653
children 74b43926b470
comparison
equal deleted inserted replaced
8617:9ae239d2547d 8618:6a383020d61e
48 static void ngx_http_set_lingering_close(ngx_connection_t *c); 48 static void ngx_http_set_lingering_close(ngx_connection_t *c);
49 static void ngx_http_lingering_close_handler(ngx_event_t *ev); 49 static void ngx_http_lingering_close_handler(ngx_event_t *ev);
50 static ngx_int_t ngx_http_post_action(ngx_http_request_t *r); 50 static ngx_int_t ngx_http_post_action(ngx_http_request_t *r);
51 static void ngx_http_log_request(ngx_http_request_t *r); 51 static void ngx_http_log_request(ngx_http_request_t *r);
52 52
53 static u_char *ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len);
53 static u_char *ngx_http_log_error_handler(ngx_http_request_t *r, 54 static u_char *ngx_http_log_error_handler(ngx_http_request_t *r,
54 ngx_http_request_t *sr, u_char *buf, size_t len); 55 ngx_http_request_t *sr, u_char *buf, size_t len);
55 56
56 #if (NGX_HTTP_SSL) 57 #if (NGX_HTTP_SSL)
57 static void ngx_http_ssl_handshake(ngx_event_t *rev); 58 static void ngx_http_ssl_handshake(ngx_event_t *rev);
3827 3828
3828 ngx_destroy_pool(pool); 3829 ngx_destroy_pool(pool);
3829 } 3830 }
3830 3831
3831 3832
3832 u_char * 3833 static u_char *
3833 ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len) 3834 ngx_http_log_error(ngx_log_t *log, u_char *buf, size_t len)
3834 { 3835 {
3835 u_char *p; 3836 u_char *p;
3836 ngx_http_request_t *r; 3837 ngx_http_request_t *r;
3837 ngx_http_log_ctx_t *ctx; 3838 ngx_http_log_ctx_t *ctx;