# HG changeset patch # User Roman Arutyunyan # Date 1587654305 -10800 # Node ID 44cac24aaa44d9e59ac333ba30012da19d7e4fc0 # Parent 336d527ca0311c7347dac26a8045b3aebb97e9a6 Assign connection number to every QUIC stream log. diff -r 336d527ca031 -r 44cac24aaa44 src/event/ngx_event_quic.c --- a/src/event/ngx_event_quic.c Fri Apr 24 14:38:49 2020 +0300 +++ b/src/event/ngx_event_quic.c Thu Apr 23 18:05:05 2020 +0300 @@ -2778,6 +2778,8 @@ 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); diff -r 336d527ca031 -r 44cac24aaa44 src/http/ngx_http_request.c --- a/src/http/ngx_http_request.c Fri Apr 24 14:38:49 2020 +0300 +++ b/src/http/ngx_http_request.c Thu Apr 23 18:05:05 2020 +0300 @@ -438,7 +438,6 @@ 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"; diff -r 336d527ca031 -r 44cac24aaa44 src/http/v3/ngx_http_v3_streams.c --- a/src/http/v3/ngx_http_v3_streams.c Fri Apr 24 14:38:49 2020 +0300 +++ b/src/http/v3/ngx_http_v3_streams.c Thu Apr 23 18:05:05 2020 +0300 @@ -34,8 +34,6 @@ { 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);