MINOR: muxes: Improve show_fd callbacks to dump endpoint flags
H1, H2 and FCGI multiplexers define a show_fd callback to dump some internal
info. The stream endpoint and its flags are now dumped if it exists.
diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c
index 33b69a2..56a9a0b 100644
--- a/src/mux_fcgi.c
+++ b/src/mux_fcgi.c
@@ -4189,9 +4189,12 @@
(unsigned int)b_data(&fstrm->rxbuf), b_orig(&fstrm->rxbuf),
(unsigned int)b_head_ofs(&fstrm->rxbuf), (unsigned int)b_size(&fstrm->rxbuf),
fstrm->cs);
- if (fstrm->cs)
- chunk_appendf(msg, " .cs.flg=0x%08x .cs.app=%p",
- fstrm->cs->flags, fstrm->cs->app);
+ if (fstrm->endp) {
+ chunk_appendf(msg, " .endp.flg=0x%08x", fstrm->endp->flags);
+ if (!(fstrm->endp->flags & CS_EP_ORPHAN))
+ chunk_appendf(msg, " .cs.flg=0x%08x .cs.app=%p",
+ fstrm->cs->flags, fstrm->cs->app);
+ }
chunk_appendf(&trash, " .subs=%p", fstrm->subs);
if (fstrm->subs) {
chunk_appendf(&trash, "(ev=%d tl=%p", fstrm->subs->events, fstrm->subs->tasklet);