]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream/debug: force a crash if a stream spins over itself forever
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Apr 2019 17:15:20 +0000 (19:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Apr 2019 11:16:14 +0000 (13:16 +0200)
commit3d07a16f1466ebe3cd91de78fb844a046af0a8b5
tree8afb99c804bc807d85df74f871a68cd149524c40
parentdcb0e1d37dc336be19ec306983c1cb4ddc3ba13c
MEDIUM: stream/debug: force a crash if a stream spins over itself forever

If a stream is caught spinning over itself at more than 100000 loops per
second and for more than one second, the process will be aborted and the
offender reported on the console and logs. Typical figures usually are just
a few tens to hundreds per second over a very short time so there is a huge
margin here. Using even higher values could also work but there is the risk
of not being able to catch offenders if multiple ones start to bug at the
same time and share the load. This code should ideally be disabled for
stable releases, though in theory nothing should ever trigger it.
src/stream.c