mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Assign connection number to every QUIC stream log.
This commit is contained in:
parent
2e4cd7a2e5
commit
9c37591016
@ -2778,6 +2778,8 @@ ngx_quic_create_stream(ngx_connection_t *c, uint64_t id, size_t rcvbuf_size)
|
|||||||
sn->c->read->log = c->log;
|
sn->c->read->log = c->log;
|
||||||
sn->c->write->log = c->log;
|
sn->c->write->log = c->log;
|
||||||
|
|
||||||
|
log->connection = sn->c->number;
|
||||||
|
|
||||||
cln = ngx_pool_cleanup_add(pool, 0);
|
cln = ngx_pool_cleanup_add(pool, 0);
|
||||||
if (cln == NULL) {
|
if (cln == NULL) {
|
||||||
ngx_close_connection(sn->c);
|
ngx_close_connection(sn->c);
|
||||||
|
@ -438,7 +438,6 @@ ngx_http_quic_stream_handler(ngx_connection_t *c)
|
|||||||
ctx->request = NULL;
|
ctx->request = NULL;
|
||||||
ctx->current_request = NULL;
|
ctx->current_request = NULL;
|
||||||
|
|
||||||
c->log->connection = c->number;
|
|
||||||
c->log->handler = ngx_http_log_error;
|
c->log->handler = ngx_http_log_error;
|
||||||
c->log->data = ctx;
|
c->log->data = ctx;
|
||||||
c->log->action = "waiting for request";
|
c->log->action = "waiting for request";
|
||||||
|
@ -34,8 +34,6 @@ ngx_http_v3_handle_client_uni_stream(ngx_connection_t *c)
|
|||||||
{
|
{
|
||||||
ngx_http_v3_uni_stream_t *us;
|
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_CONTROL);
|
||||||
ngx_http_v3_get_uni_stream(c, NGX_HTTP_V3_STREAM_ENCODER);
|
ngx_http_v3_get_uni_stream(c, NGX_HTTP_V3_STREAM_ENCODER);
|
||||||
ngx_http_v3_get_uni_stream(c, NGX_HTTP_V3_STREAM_DECODER);
|
ngx_http_v3_get_uni_stream(c, NGX_HTTP_V3_STREAM_DECODER);
|
||||||
|
Loading…
Reference in New Issue
Block a user