Mercurial > hg > nginx-quic
changeset 7839:44cac24aaa44 quic
Assign connection number to every QUIC stream log.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 23 Apr 2020 18:05:05 +0300 |
parents | 336d527ca031 |
children | d3395396ce51 |
files | src/event/ngx_event_quic.c src/http/ngx_http_request.c src/http/v3/ngx_http_v3_streams.c |
diffstat | 3 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -2778,6 +2778,8 @@ ngx_quic_create_stream(ngx_connection_t sn->c->read->log = c->log; sn->c->write->log = c->log; + log->connection = sn->c->number; + cln = ngx_pool_cleanup_add(pool, 0); if (cln == NULL) { ngx_close_connection(sn->c);
--- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -438,7 +438,6 @@ ngx_http_quic_stream_handler(ngx_connect ctx->request = NULL; ctx->current_request = NULL; - c->log->connection = c->number; c->log->handler = ngx_http_log_error; c->log->data = ctx; c->log->action = "waiting for request";
--- a/src/http/v3/ngx_http_v3_streams.c +++ b/src/http/v3/ngx_http_v3_streams.c @@ -34,8 +34,6 @@ ngx_http_v3_handle_client_uni_stream(ngx { ngx_http_v3_uni_stream_t *us; - c->log->connection = c->number; - ngx_http_v3_get_uni_stream(c, NGX_HTTP_V3_STREAM_CONTROL); ngx_http_v3_get_uni_stream(c, NGX_HTTP_V3_STREAM_ENCODER); ngx_http_v3_get_uni_stream(c, NGX_HTTP_V3_STREAM_DECODER);