Skip to content

Commit

Permalink
QUIC: logging of CRYPTO frame payload under NGX_QUIC_DEBUG_FRAMES.
Browse files Browse the repository at this point in the history
pluknet committed Dec 2, 2021
1 parent 7e7e552 commit e694905
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/event/quic/ngx_event_quic_frames.c
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit e694905

Please sign in to comment.