mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-18 01:14:38 +00:00
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.
This commit is contained in:
parent
150c4f8b72
commit
1776ffb975
@ -4104,6 +4104,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, ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user