From 5a090d659978584ada4c7457edb4f9108c782a3a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 20 Jan 2021 17:10:46 +0100 Subject: [PATCH] MINOR: mux-fcgi: make the "show fd" helper also decode the fstrm subscriber when known When dumping a live fcgi stream, also take the opportunity for reporting the subscriber including the event, tasklet, handler and context. (cherry picked from commit 1776ffb975017f91a12a9c6404bd3cb73789c7c7) Signed-off-by: Willy Tarreau --- src/mux_fcgi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c index afc6423..cea28a5 100644 --- a/src/mux_fcgi.c +++ b/src/mux_fcgi.c @@ -4102,6 +4102,17 @@ static void fcgi_show_fd(struct buffer *msg, struct connection *conn) if (fstrm->cs) chunk_appendf(msg, " .cs.flg=0x%08x .cs.data=%p", fstrm->cs->flags, fstrm->cs->data); + chunk_appendf(&trash, " .subs=%p", fstrm->subs); + if (fstrm->subs) { + if (fstrm->subs) { + chunk_appendf(&trash, "(ev=%d tl=%p", fstrm->subs->events, fstrm->subs->tasklet); + chunk_appendf(&trash, " tl.calls=%d tl.ctx=%p tl.fct=", + fstrm->subs->tasklet->calls, + fstrm->subs->tasklet->context); + resolve_sym_name(&trash, NULL, fstrm->subs->tasklet->process); + chunk_appendf(&trash, ")"); + } + } } } -- 1.7.10.4