haproxy/src
Willy Tarreau b27c0d35dd MEDIUM: pattern: report the precise argument parsing error when known.
The argument parser knows what exact error it has faced, and the pattern
parser is able to report errors, so let's make use of it. From now on, it
becomes possible to detect such things :

$ ./haproxy -db -f echo5.cfg
[ALERT] 110/160344 (4791) : parsing [echo5.cfg:38] : 'stick': invalid arg 2 in fetch method 'payload' : Missing arguments (got 1/2), type 'unsigned integer' expected.
[ALERT] 110/160344 (4791) : parsing [echo5.cfg:39] : 'stick': invalid args in fetch method 'payload' : payload length must be > 0.
[ALERT] 110/160344 (4791) : parsing [echo5.cfg:40] : 'stick': invalid arg 3 in fetch method 'payload_lv' : Failed to parse 'x' as type 'signed integer'.
[ALERT] 110/160344 (4791) : parsing [echo5.cfg:41] : 'stick': invalid arg 4 in fetch method 'payload_lv' : End of arguments expected at ',13'.
[ALERT] 110/160344 (4791) : Error(s) found in configuration file : echo5.cfg
[ALERT] 110/160344 (4791) : Fatal errors found in configuration.
2012-05-08 20:57:13 +02:00
..
acl.c MAJOR: acl: ensure that implicit table and proxies are valid 2012-05-08 20:57:12 +02:00
appsession.c CLEANUP: remove a few warning about unchecked return values in debug code 2012-04-30 11:56:30 +02:00
arg.c MEDIUM: add a new typed argument list parsing framework 2012-05-08 20:57:10 +02:00
auth.c [REORG] http: move the http-request rules to proto_http 2011-03-13 22:00:24 +01:00
backend.c MEDIUM: acl: remove unused tests for missing args when args are mandatory 2012-05-08 20:57:12 +02:00
base64.c [MINOR] add encode/decode function for 30-bit integers from/to base64 2010-10-30 19:04:33 +02:00
buffers.c MEDIUM: buffers: rename a number of buffer management functions 2012-05-08 20:56:56 +02:00
cfgparse.c MINOR: log: log-format: usable without httplog and tcplog 2012-04-07 16:25:26 +02:00
checks.c CLEANUP: Make check_statuses, analyze_statuses and process_chk static 2012-03-24 21:54:19 +01:00
cttproxy.c [BUG] cttproxy: socket fd leakage in check_cttproxy_version 2010-05-09 21:19:08 +02:00
dumpstats.c MEDIUM: buffers: rename a number of buffer management functions 2012-05-08 20:56:56 +02:00
ev_epoll.c [MEDIUM] poll: add a measurement of idle vs work time 2011-09-10 18:01:41 +02:00
ev_kqueue.c [MEDIUM] poll: add a measurement of idle vs work time 2011-09-10 18:01:41 +02:00
ev_poll.c [MEDIUM] poll: add a measurement of idle vs work time 2011-09-10 18:01:41 +02:00
ev_select.c [MEDIUM] poll: add a measurement of idle vs work time 2011-09-10 18:01:41 +02:00
ev_sepoll.c [MEDIUM] poll: add a measurement of idle vs work time 2011-09-10 18:01:41 +02:00
fd.c [BUG] debug: report the correct poller list in verbose mode 2010-11-19 13:25:10 +01:00
freq_ctr.c [MINOR] freq_ctr: add new types and functions for periods different from 1s 2010-08-10 14:01:09 +02:00
frontend.c MEDIUM: acl: remove unused tests for missing args when args are mandatory 2012-05-08 20:57:12 +02:00
haproxy.c MEDIUM: pattern: get rid of arg_i in all functions making use of arguments 2012-05-08 20:57:12 +02:00
hdr_idx.c OPTIM/MINOR: move the hdr_idx pools out of the proxy struct 2011-10-24 18:15:04 +02:00
i386-linux-vsys.c [OPTIM] linux: add support for bypassing libc to force using vsyscalls 2010-11-14 17:09:33 +01:00
lb_chash.c [MEDIUM] hash: add support for an 'avalanche' hash-type 2010-11-29 07:28:16 +01:00
lb_fas.c CLEANUP: lb_first: add reference to a paper describing the original idea 2012-04-07 09:08:45 +02:00
lb_fwlc.c [MEDIUM] build: switch ebtree users to use new ebtree version 2009-10-26 21:10:04 +01:00
lb_fwrr.c [MEDIUM] build: switch ebtree users to use new ebtree version 2009-10-26 21:10:04 +01:00
lb_map.c [BUG] url_param hash may return a down server 2010-03-12 06:22:16 +01:00
log.c MEDIUM: stream_sock: add a get_src and get_dst callback and remove SN_FRT_ADDR_SET 2012-04-07 18:03:52 +02:00
memory.c [MEDIUM] ensure we don't recursively call pool_gc2() 2009-04-21 02:17:45 +02:00
pattern.c MEDIUM: pattern: report the precise argument parsing error when known. 2012-05-08 20:57:13 +02:00
peers.c MEDIUM: buffers: rename a number of buffer management functions 2012-05-08 20:56:56 +02:00
pipe.c BUILD/MINOR: silent a build warning in src/pipe.c (fcntl) 2011-10-24 17:09:22 +02:00
proto_http.c MEDIUM: pattern: add an argument validation callback to pattern descriptors 2012-05-08 20:57:13 +02:00
proto_tcp.c MEDIUM: pattern: add an argument validation callback to pattern descriptors 2012-05-08 20:57:13 +02:00
proto_uxst.c [MEDIUM] proxy: add a PAUSED state to listeners and move socket tricks out of proxy.c 2011-07-24 19:09:37 +02:00
protocols.c MAJOR: acl: store the ACL argument types in the ACL keyword declaration 2012-05-08 20:57:11 +02:00
proxy.c MEDIUM: log: Unique ID 2012-04-07 16:25:26 +02:00
queue.c BUG/MEDIUM: zero-weight servers must not dequeue requests from the backend 2012-01-20 16:18:53 +01:00
rbtree.c [MINOR] imported the rbtree function from Linux kernel 2007-01-07 02:12:57 +01:00
regex.c [MINOR] prepare req_*/rsp_* to receive a condition 2010-01-28 18:10:50 +01:00
server.c [CLEANUP] remove many #include <types/xxx> from C files 2008-07-16 10:30:42 +02:00
session.c MEDIUM: acl: remove unused tests for missing args when args are mandatory 2012-05-08 20:57:12 +02:00
sessionhash.c [PATCH] appsessions: cleanup DEBUG_HASH and initialize request_counter 2008-08-13 23:43:26 +02:00
signal.c [MEDIUM] signals: support redistribution of signal zero when stopping 2010-08-27 18:26:11 +02:00
standard.c MINOR: standard: add a memprintf() function to build formatted error messages 2012-04-30 11:55:35 +02:00
stick_table.c [BUG] fix binary stick-tables 2011-05-09 23:30:58 +02:00
stream_interface.c MEDIUM: buffers: rename a number of buffer management functions 2012-05-08 20:56:56 +02:00
stream_sock.c MEDIUM: buffers: rename a number of buffer management functions 2012-05-08 20:56:56 +02:00
task.c [OPTIM] task: don't scan the run queue if we know it's empty 2011-09-10 20:08:49 +02:00
time.c MINOR: Date and time fonctions that don't use snprintf 2012-02-09 17:03:28 +01:00
uri_auth.c [REORG] http: move the http-request rules to proto_http 2011-03-13 22:00:24 +01:00