mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 18:29:00 +08:00
QUIC: consistent Stream ID logging format.
This commit is contained in:
parent
007a3996cc
commit
c2e9b362ed
@ -3124,7 +3124,7 @@ ngx_quic_handle_stream_data_blocked_frame(ngx_connection_t *c,
|
|||||||
|
|
||||||
if (sn == NULL) {
|
if (sn == NULL) {
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
"quic unknown stream id:%uL", f->id);
|
"quic unknown stream id:0x%xL", f->id);
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3141,7 +3141,7 @@ ngx_quic_handle_stream_data_blocked_frame(ngx_connection_t *c,
|
|||||||
frame->u.max_stream_data.id = f->id;
|
frame->u.max_stream_data.id = f->id;
|
||||||
frame->u.max_stream_data.limit = n;
|
frame->u.max_stream_data.limit = n;
|
||||||
|
|
||||||
ngx_sprintf(frame->info, "MAX_STREAM_DATA id:%d limit:%d level=%d",
|
ngx_sprintf(frame->info, "MAX_STREAM_DATA id:0x%xL limit:%d level=%d",
|
||||||
(int) frame->u.max_stream_data.id,
|
(int) frame->u.max_stream_data.id,
|
||||||
(int) frame->u.max_stream_data.limit,
|
(int) frame->u.max_stream_data.limit,
|
||||||
frame->level);
|
frame->level);
|
||||||
@ -3173,7 +3173,8 @@ ngx_quic_handle_max_stream_data_frame(ngx_connection_t *c,
|
|||||||
sn = ngx_quic_find_stream(&qc->streams.tree, f->id);
|
sn = ngx_quic_find_stream(&qc->streams.tree, f->id);
|
||||||
|
|
||||||
if (sn == NULL) {
|
if (sn == NULL) {
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0, "unknown stream id:%uL", f->id);
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
|
"unknown stream id:0x%xL", f->id);
|
||||||
|
|
||||||
if (f->id & NGX_QUIC_STREAM_SERVER_INITIATED) {
|
if (f->id & NGX_QUIC_STREAM_SERVER_INITIATED) {
|
||||||
qc->error = NGX_QUIC_ERR_STREAM_STATE_ERROR;
|
qc->error = NGX_QUIC_ERR_STREAM_STATE_ERROR;
|
||||||
@ -3786,7 +3787,7 @@ ngx_quic_open_stream(ngx_connection_t *c, ngx_uint_t bidi)
|
|||||||
| NGX_QUIC_STREAM_SERVER_INITIATED;
|
| NGX_QUIC_STREAM_SERVER_INITIATED;
|
||||||
|
|
||||||
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||||
"quic creating server bidi stream %uL/%uL id:%uL",
|
"quic creating server bidi stream %uL/%uL id:0x%xL",
|
||||||
qc->streams.server_streams_bidi,
|
qc->streams.server_streams_bidi,
|
||||||
qc->streams.server_max_streams_bidi, id);
|
qc->streams.server_max_streams_bidi, id);
|
||||||
|
|
||||||
@ -3808,7 +3809,7 @@ ngx_quic_open_stream(ngx_connection_t *c, ngx_uint_t bidi)
|
|||||||
| NGX_QUIC_STREAM_UNIDIRECTIONAL;
|
| NGX_QUIC_STREAM_UNIDIRECTIONAL;
|
||||||
|
|
||||||
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||||
"quic creating server uni stream %uL/%uL id:%uL",
|
"quic creating server uni stream %uL/%uL id:0x%xL",
|
||||||
qc->streams.server_streams_uni,
|
qc->streams.server_streams_uni,
|
||||||
qc->streams.server_max_streams_uni, id);
|
qc->streams.server_max_streams_uni, id);
|
||||||
|
|
||||||
@ -3886,7 +3887,7 @@ ngx_quic_create_stream(ngx_connection_t *c, uint64_t id, size_t rcvbuf_size)
|
|||||||
ngx_quic_connection_t *qc;
|
ngx_quic_connection_t *qc;
|
||||||
|
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||||
"quic stream id 0x%uL create", id);
|
"quic stream id 0x%xL create", id);
|
||||||
|
|
||||||
qc = c->quic;
|
qc = c->quic;
|
||||||
|
|
||||||
@ -4044,7 +4045,8 @@ ngx_quic_stream_recv(ngx_connection_t *c, u_char *buf, size_t size)
|
|||||||
frame->u.max_stream_data.limit = qs->fs.received + (b->pos - b->start)
|
frame->u.max_stream_data.limit = qs->fs.received + (b->pos - b->start)
|
||||||
+ (b->end - b->last);
|
+ (b->end - b->last);
|
||||||
|
|
||||||
ngx_sprintf(frame->info, "MAX_STREAM_DATA id:%d limit:%d l=%d on recv",
|
ngx_sprintf(frame->info,
|
||||||
|
"MAX_STREAM_DATA id:0x%xL limit:%d l=%d on recv",
|
||||||
(int) frame->u.max_stream_data.id,
|
(int) frame->u.max_stream_data.id,
|
||||||
(int) frame->u.max_stream_data.limit,
|
(int) frame->u.max_stream_data.limit,
|
||||||
frame->level);
|
frame->level);
|
||||||
|
@ -934,7 +934,7 @@ ngx_quic_parse_frame(ngx_quic_header_t *pkt, u_char *start, u_char *end,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
|
ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
|
||||||
"quic frame in: MAX_STREAM_DATA id:%uL limit:%uL",
|
"quic frame in: MAX_STREAM_DATA id:0x%xL limit:%uL",
|
||||||
f->u.max_stream_data.id,
|
f->u.max_stream_data.id,
|
||||||
f->u.max_stream_data.limit);
|
f->u.max_stream_data.limit);
|
||||||
break;
|
break;
|
||||||
@ -965,7 +965,7 @@ ngx_quic_parse_frame(ngx_quic_header_t *pkt, u_char *start, u_char *end,
|
|||||||
|
|
||||||
ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
|
ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
|
||||||
"quic frame in: STREAM_DATA_BLOCKED"
|
"quic frame in: STREAM_DATA_BLOCKED"
|
||||||
" id:%uL limit:%uL",
|
" id:0x%xL limit:%uL",
|
||||||
f->u.stream_data_blocked.id,
|
f->u.stream_data_blocked.id,
|
||||||
f->u.stream_data_blocked.limit);
|
f->u.stream_data_blocked.limit);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user