haproxy/doc
Willy Tarreau 1ee51a6581 [BUG] check: http-check expect + regex would crash in defaults section
Manoj Kumar reported a case where haproxy would crash upon start-up. The
cause was an "http-check expect" statement declared in the defaults section,
which caused a NULL regex to be used during the check. This statement is not
allowed in defaults sections precisely because this requires saving a copy
of the regex in the default proxy. But the check was not made to prevent it
from being declared there, hence the issue.

Instead of adding code to detect its abnormal use, we decided to implement
it. It was not that much complex because the expect_str part was not used
with regexes, so it could hold the string form of the regex in order to
compile it again for every backend (there's no way to clone regexes).

This patch has been tested and works. So it's both a bugfix and a minor
feature enhancement.

It should be backported to 1.4 though it's not critical since the config
was not supposed to be supported.
2011-08-19 20:14:01 +02:00
..
design-thoughts [DOC] added some docs about http headers storage and acls 2007-04-01 09:44:10 +02:00
internals [DOC] internal: reflect the fact that SI_ST_ASS is transient 2011-03-03 16:40:09 +01:00
acl.fig [DOC] add diagrams of queuing and future ACL design 2009-02-22 16:46:38 +01:00
architecture.txt [MINOR] add X-Original-To: header 2009-05-01 16:22:33 +02:00
configuration.txt [BUG] check: http-check expect + regex would crash in defaults section 2011-08-19 20:14:01 +02:00
gpl.txt [LICENSE] licensing clarifications 2006-06-15 21:48:13 +02:00
haproxy-en.txt [DOC] point to 1.4 doc, not 1.3 2009-10-14 22:22:03 +02:00
haproxy-fr.txt [DOC] point to 1.4 doc, not 1.3 2009-10-14 22:22:03 +02:00
haproxy.1 [DOC] trivial fix for man page 2009-10-14 21:12:39 +02:00
lgpl.txt [LICENSE] licensing clarifications 2006-06-15 21:48:13 +02:00
proxy-protocol.txt [DOC] update the spec on the proxy protocol 2011-03-20 11:53:50 +01:00
queuing.fig [DOC] add diagrams of queuing and future ACL design 2009-02-22 16:46:38 +01:00