haproxy/tests
Willy Tarreau d78c0fa0fb TESTS: add a test configuration to stress handshake combinations
This config tries to involve the various possible combinations of connection
handshakes, on the accept side and on the connect side. It also produces logs
indicating the handshake time.

May be tested with tcploop as the server, both for TCP and HTTP mode :
   - accept new connection
   - pause 100ms
   - send what looks like an HTTP response
   - wait 500ms and close

Starting log server (mainly to check timers) :
   $ socat udp-recvfrom:5514,fork -

Starting server :
   $ tcploop 8000 L N A W P100 S:"HTTP/1.0 200 OK\r\nConnection: close\r\n\r\n" P500

Testing all combinations with server-speaks-first (tcp) :
   $ nc 0 8007

Testing all combinations with client-speaks-first (tcp) :
   $ (printf "GET / HTTP/1.0\r\n\r\n";sleep 1) | nc 0 8007

Testing all combinations with client-speaks-first after pause (tcp) :
   $ (usleep 0.05 ; printf "GET / HTTP/1.0\r\n\r\n";sleep 1) | nc 0 8007

Testing all combinations with client-speaks-first (http) :
   $ (printf "GET / HTTP/1.0\r\n\r\n";sleep 1) | nc 0 8017

Testing all combinations with client-speaks-first after pause (http) :
   $ (usleep 0.05 ; printf "GET / HTTP/1.0\r\n\r\n";sleep 1) | nc 0 8017

Same tests must be redone after surrounding connect() in tcp_connect_server()
with fcntl(fd, F_SETFL, 0) and fcntl(fd, F_SETFL, O_NONBLOCK) for sycnhronous
connect().
2017-03-19 11:59:47 +01: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
filltab25.c CLEANUP: remove unneeded casts 2016-04-03 14:17:42 +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
reset.c [TESTS] add a simple program to test connection resets 2010-03-25 06:38:21 +01:00
sockstat.txt
test_hashes.c
test_pools.c
test-acl-args.cfg TESTS: add regression tests for ACL and sample expression parsers 2013-12-13 01:35:08 +01: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
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
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
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-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-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 TESTS: add regression tests for ACL and sample expression parsers 2013-12-13 01:35:08 +01: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-sql.cfg [MINOR] add better support to "mysql-check" 2010-10-30 19:04:35 +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
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
test.c
testinet.c
uri_hash.c