haproxy/tests
Willy Tarreau de4db17dee MINOR: lists: rename some MT_LIST operations to clarify them
Initially when mt_lists were added, their purpose was to be used with
the scheduler, where anyone may concurrently add the same tasklet, so
it sounded natural to implement a check in MT_LIST_ADD{,Q}. Later their
usage was extended and MT_LIST_ADD{,Q} started to be used on situations
where the element to be added was exclusively owned by the one performing
the operation so a conflict was impossible. This became more obvious with
the idle connections and the new macro was called MT_LIST_ADDQ_NOCHECK.

But this remains confusing and at many places it's not expected that
an MT_LIST_ADD could possibly fail, and worse, at some places we start
by initializing it before adding (and the test is superflous) so let's
rename them to something more conventional to denote the presence of the
check or not:

   MT_LIST_ADD{,Q}    : inconditional operation, the caller owns the
                        element, and doesn't care about the element's
                        current state (exactly like LIST_ADD)
   MT_LIST_TRY_ADD{,Q}: only perform the operation if the element is not
                        already added or in the process of being added.

This means that the previously "safe" MT_LIST_ADD{,Q} are not "safe"
anymore. This also means that in case of backport mistakes in the
future causing this to be overlooked, the slower and safer functions
will still be used by default.

Note that the missing unchecked MT_LIST_ADD macro was added.

The rest of the code will have to be reviewed so that a number of
callers of MT_LIST_TRY_ADDQ are changed to MT_LIST_ADDQ to remove
the unneeded test.
2020-07-10 08:50:41 +02:00
..
0000-debug-stats.diff BUG/MAJOR: trash must always be the size of a buffer 2012-05-16 14:21:55 +02:00
blocksig.c TESTS: add blocksig.c to run tests with all signals blocked 2016-04-20 10:53:12 +02:00
ext-check.cfg TESTS: checks: add a simple test config for external checks 2017-10-04 15:42:00 +02:00
filltab25.c REORG: ebtree: move the include files from ebtree to include/import/ 2020-06-11 09:31:11 +02:00
hash_results.txt
hashing-results.txt DOC: Documentation for hashing function, with test results. 2013-11-20 22:14:47 +01:00
io_limits.txt
ip-hash.c [TESTS] add new methods in ip-hash test file 2008-04-13 09:27:00 +02:00
ist.c TESTS: ist: add a test file for the functions 2017-08-18 13:38:47 +02:00
reset.c [TESTS] add a simple program to test connection resets 2010-03-25 06:38:21 +01:00
sockstat.txt
tcp-check.cfg TESTS: Add a testcase for multi-port + multi-server listener issue 2018-03-19 11:48:29 +01:00
test_hashes.c
test_pools.c
test-acl-args.cfg CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
test-address-syntax.cfg [TESTS] provide a test case for various address formats 2011-03-23 22:49:57 +01:00
test-arg.c MEDIUM: add a new typed argument list parsing framework 2012-05-08 20:57:10 +02:00
test-backlog.cfg [MINOR] add support for the "backlog" parameter 2008-01-06 10:55:10 +01:00
test-check-expect.cfg [TESTS] add test-check-expect to test various http-check methods 2010-10-30 19:04:32 +02:00
test-connection.cfg [TESTS] add a file to test various connection modes 2010-01-05 14:35:03 +01:00
test-cookie-indirect.cfg [MEDIUM] http: fix space handling in the request cookie parser 2010-09-01 00:02:21 +02:00
test-cookie-insert.cfg [MEDIUM] http: fix space handling in the request cookie parser 2010-09-01 00:02:21 +02:00
test-cookie-passive.cfg [MEDIUM] http: fix space handling in the request cookie parser 2010-09-01 00:02:21 +02:00
test-cookie-prefix.cfg [MEDIUM] http: fix space handling in the request cookie parser 2010-09-01 00:02:21 +02:00
test-cookie-rewrite.cfg [MEDIUM] http: fix space handling in the request cookie parser 2010-09-01 00:02:21 +02:00
test-disable-404.cfg [TESTS] add a test file for disable-on-404 2007-11-30 15:23:38 +01:00
test-fsm.cfg [TESTS] refine non-regression tests and add 4 new tests 2010-06-07 22:43:55 +02:00
test-fwlc.cfg [MAJOR] implementation of the "leastconn" load balancing algorithm 2008-03-10 22:04:30 +01:00
test-fwrr.cfg [TESTS] merge test-fwrr.cfg to validate dynamic weights 2007-11-28 14:23:32 +01:00
test-handshakes-chk.cfg TESTS: add a test configuration to stress handshake combinations 2017-03-19 11:59:47 +01:00
test-handshakes.cfg TESTS: add a test configuration to stress handshake combinations 2017-03-19 11:59:47 +01:00
test-http-send-name-hdr.cfg MEDIUM: http: add support for sending the server's name in the outgoing request 2012-01-05 15:17:31 +01:00
test-inherited-fd.py MINOR: tests: add a python wrapper to test inherited fd 2017-11-15 19:53:34 +01:00
test-inspect-smtp.cfg [MINOR] acl: add the "wait_end" acl verb 2008-07-20 11:18:28 +02:00
test-inspect-ssl.cfg [MINOR] acl: add req_ssl_ver in TCP, to match an SSL version 2008-07-16 10:30:06 +02:00
test-list.c MINOR: lists: rename some MT_LIST operations to clarify them 2020-07-10 08:50:41 +02:00
test-map-ports.cfg [TESTS] add a test case for port mapping 2008-04-12 11:19:04 +02:00
test-pollers.cfg [TESTS] add test-pollers.cfg to easily report pollers in use 2008-02-16 20:02:48 +01:00
test-redirect.cfg [MINOR] redirect: in prefix mode a "/" means not to change the URI 2008-12-07 23:48:39 +01:00
test-sample-fetch-args.cfg CLEANUP: assorted typo fixes in the code and comments 2020-04-16 10:04:36 +02:00
test-sample-fetch-conv.cfg TESTS: add regression tests for ACL and sample expression parsers 2013-12-13 01:35:08 +01:00
test-sockpair.py TESTS: add a python wrapper for sockpair@ 2018-09-12 07:20:26 +02:00
test-sql.cfg [MINOR] add better support to "mysql-check" 2010-10-30 19:04:35 +02:00
test-srv-verify.cfg MINOR: ssl: compare server certificate names to the SNI on outgoing connections 2017-07-06 15:15:28 +02:00
test-str2sa.cfg MINOR: tests: add a config file to ease address parsing tests. 2013-02-20 19:23:44 +01:00
test-time.cfg [MEDIUM] add support for time units in the configuration 2007-12-02 22:15:14 +01:00
test-timeout.cfg [MEDIUM] introduce "timeout http-request" in frontends 2008-01-06 13:24:40 +01:00
test-url-hash.cfg [TESTS] update the url_param regression test to test check_post too 2011-03-01 20:43:27 +01:00
test-valid-names.cfg [MEDIUM] restrict the set of allowed characters for identifiers 2007-12-02 18:45:09 +01:00
test.c
testinet.c
uri_hash.c