aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2021-12-02 13:59:56 +0300
committerSergey Kandaurov <pluknet@nginx.com>2021-12-02 13:59:56 +0300
commite6949057ea3fcdd6f0d1559e11e9163c48a311a0 (patch)
treef20ee02abfe09959eaf666f32e5ffda256662035 /src
parent7e7e552a10b9e5d0fd94b1a657061253ccac709e (diff)
downloadnginx-e6949057ea3fcdd6f0d1559e11e9163c48a311a0.tar.gz
nginx-e6949057ea3fcdd6f0d1559e11e9163c48a311a0.zip
QUIC: logging of CRYPTO frame payload under NGX_QUIC_DEBUG_FRAMES.
Diffstat (limited to 'src')
-rw-r--r--src/event/quic/ngx_event_quic_frames.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_frames.c b/src/event/quic/ngx_event_quic_frames.c
index 8d9fe24c2..4a3902f7f 100644
--- a/src/event/quic/ngx_event_quic_frames.c
+++ b/src/event/quic/ngx_event_quic_frames.c
@@ -573,6 +573,20 @@ ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx)
case NGX_QUIC_FT_CRYPTO:
p = ngx_slprintf(p, last, "CRYPTO len:%uL off:%uL",
f->u.crypto.length, f->u.crypto.offset);
+
+#ifdef NGX_QUIC_DEBUG_FRAMES
+ {
+ ngx_chain_t *cl;
+
+ p = ngx_slprintf(p, last, " data:");
+
+ for (cl = f->data; cl; cl = cl->next) {
+ p = ngx_slprintf(p, last, "%*xs",
+ cl->buf->last - cl->buf->pos, cl->buf->pos);
+ }
+ }
+#endif
+
break;
case NGX_QUIC_FT_PADDING: