haproxy/include/common
Krzysztof Oledzki 336d475d13 [MEDIUM]: Inversion for options
This patch adds a possibility to invert most of available options by
introducing the "no" keyword, available as an additional prefix.
If it is found arguments are shifted left and an additional flag (inv)
is set.

It allows to use all options from a current defaults section, except
the selected ones, for example:

-- cut here --
defaults
        contimeout      4200
        clitimeout      50000
        srvtimeout      40000
        option contstats

listen stats 1.2.3.4:80
	no option contstats
-- cut here --

Currenly inversion works only with the "option" keyword.

The patch also moves last_checks calculation at the end of the readcfgfile()
function and changes "PR_O_FORCE_CLO | PR_O_HTTP_CLOSE" into "PR_O_FORCE_CLO"
in cfg_opts so it is possible to invert forceclose without breaking httpclose
(and vice versa) and to invert tcpsplice in one proxy but to keep a proper
last_checks value when tcpsplice is used in another proxy. Now, the code
checks for PR_O_FORCE_CLO everywhere it checks for PR_O_HTTP_CLOSE.

I also decided to depreciate "redisp" and "redispatch" keywords as it is IMHO
better to use "option redispatch" which can be inverted.

Some useful documentation were added and at the same time I sorted
(alfabetically) all valid options both in the code and the documentation.
2007-12-27 11:52:06 +01:00
..
appsession.h [MAJOR] remove files distributed under an obscure license 2007-09-09 21:56:53 +02:00
base64.h
cfgparse.h [MEDIUM]: Inversion for options 2007-12-27 11:52:06 +01:00
compat.h [BUILD] fix 2 minor issues on AIX 2007-11-30 18:38:35 +01:00
config.h [MEDIUM] implement memory pools version 2 2007-05-13 18:26:08 +02:00
debug.h [BUILD] debug.h had a typo. Also add FSM_PRINTF to debug FSM only. 2006-12-16 23:22:58 +01:00
defaults.h [MEDIUM] Handle long lines properly 2007-11-01 23:00:51 +01:00
eb32tree.h [BUILD] make ebtree headers multiple-include compatible 2007-11-28 14:23:05 +01:00
eb64tree.h [BUILD] make ebtree headers multiple-include compatible 2007-11-28 14:23:05 +01:00
ebpttree.h [BUILD] make ebtree headers multiple-include compatible 2007-11-28 14:23:05 +01:00
ebtree.h [MEDIUM] ebtree: include config.h for REGPRM* 2007-11-28 14:23:07 +01:00
epoll.h [BUILD] declare epoll_* as static when using our own functions 2007-04-15 23:57:41 +02:00
errors.h [MINOR] add an options field to the listeners 2007-11-04 22:42:48 +01:00
memory.h [MAJOR] call garbage collector when doing soft stop 2007-05-14 00:39:29 +02:00
mini-clist.h [CLEANUP] silent warning about LIST_* being redefined on OpenBSD 2007-10-28 11:41:06 +01:00
rbtree.h [MINOR] imported the rbtree function from Linux kernel 2007-01-07 02:12:57 +01:00
regex.h [MAJOR] merged the 'setbe' actions to switch the backend on a regex 2006-12-17 23:15:24 +01:00
sessionhash.h [MAJOR] remove files distributed under an obscure license 2007-09-09 21:56:53 +02:00
standard.h [MEDIUM] add support for logging via a UNIX socket 2007-12-05 10:47:29 +01:00
template.h
time.h [BUILD] fix 2 minor issues on AIX 2007-11-30 18:38:35 +01:00
tools.h [MINOR] forgot to include common/tools.h in the archive. 2006-12-22 14:40:41 +01:00
uri_auth.h [MINOR] report haproxy's version by default on the stats page 2007-10-15 10:05:11 +02:00
version.h [BUILD] centralize version and date into one file for each 2007-09-09 23:31:11 +02:00