# HG changeset patch # User Sergey Kandaurov # Date 1638442796 -10800 # Node ID a6a328ebd3625e0a907351206e7ac03172241b4e # Parent 606bf52888d2cee297eaea691469d01bae1505be QUIC: logging of CRYPTO frame payload under NGX_QUIC_DEBUG_FRAMES. diff --git a/src/event/quic/ngx_event_quic_frames.c b/src/event/quic/ngx_event_quic_frames.c --- 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_q 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: