]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] term_trace: add better instrumentations to trace the code
authorWilly Tarreau <w@1wt.eu>
Sat, 16 Aug 2008 12:55:08 +0000 (14:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 16 Aug 2008 12:55:08 +0000 (14:55 +0200)
commitf853320b44b3e0daa396322f6016fbb566592004
treeacdcd24810049f3e579b6ac153eee9542ab50627
parent1ae3a057df05604b350498eb1c5f8d2ecf256269
[MINOR] term_trace: add better instrumentations to trace the code

A new member has been added to the struct session. It keeps a trace
of what block of code performs a close or a shutdown on a socket, and
in what sequence. This is extremely convenient for post-mortem analysis
where flag combinations and states seem impossible. A new ABORT_NOW()
macro has also been added to make the code immediately segfault where
called.
include/common/debug.h
include/proto/session.h
include/types/session.h
src/client.c
src/proto_http.c
src/proto_uxst.c