diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-10-27 18:21:36 +0000 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-10-27 18:21:36 +0000 |
commit | 54187d2d7a3cd2a34105a9ccaee732b76e6c3cf5 (patch) | |
tree | 7336524c585c12d3cc1ff7a72107145f6a7c3167 /src | |
parent | 42a4e6d3111d701a5f286b34b6b3e873797ab0ab (diff) | |
download | nginx-54187d2d7a3cd2a34105a9ccaee732b76e6c3cf5.tar.gz nginx-54187d2d7a3cd2a34105a9ccaee732b76e6c3cf5.zip |
QUIC: changed STREAM frame debugging.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/ngx_event_quic.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 7763cf325..9cdc41e9c 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -474,12 +474,20 @@ ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx) case NGX_QUIC_FT_STREAM6: case NGX_QUIC_FT_STREAM7: - p = ngx_slprintf(p, last, - "STREAM type:0x%xi id:0x%xL offset:0x%xL " - "len:0x%xL bits off:%d len:%d fin:%d", - f->type, f->u.stream.stream_id, f->u.stream.offset, - f->u.stream.length, f->u.stream.off, f->u.stream.len, - f->u.stream.fin); + p = ngx_slprintf(p, last, "STREAM id:0x%xL", f->u.stream.stream_id); + + if (f->u.stream.off) { + p = ngx_slprintf(p, last, " off:%uL", f->u.stream.offset); + } + + if (f->u.stream.len) { + p = ngx_slprintf(p, last, " len:%uL", f->u.stream.length); + } + + if (f->u.stream.fin) { + p = ngx_slprintf(p, last, " fin:1"); + } + break; case NGX_QUIC_FT_MAX_DATA: |