]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h2/trace: indicate 'F' or 'B' to locate the side of an h2c in traces
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Sep 2019 04:55:34 +0000 (06:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Sep 2019 05:30:59 +0000 (07:30 +0200)
commit2d22144559f84838b15e4d5c72a40bcbe7e1e729
treecdf16dc0d5406ee3934be6b052ef510a16fe04b1
parentbba1a263c5831436196d1c6fbd5f771d659b34a7
MINOR: h2/trace: indicate 'F' or 'B' to locate the side of an h2c in traces

It was difficult in traces showing h2-to-h2 communications to figure the
connection side solely based on the pointer. With this patch we prepend
'F' or 'B' before the state to make this more explicit:

[06|h2|4|mux_h2.c:5487] h2_rcv_buf(): entering : h2c=0x7f6acc026440(F,FRH) h2s=0x7f6acc021720(1,CLO)
[06|h2|4|mux_h2.c:5547] h2_rcv_buf(): leaving : h2c=0x7f6acc026440(F,FRH) h2s=0x7f6acc021720(1,CLO)
[06|h2|4|mux_h2.c:4040] h2_shutw(): entering : h2c=0x7f6acc026440(F,FRH) h2s=0x7f6acc021720(1,CLO)
src/mux_h2.c