mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-15 07:54:33 +00:00
d78c0fa0fb
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(). |
||
---|---|---|
.. | ||
0000-debug-stats.diff | ||
blocksig.c | ||
filltab25.c | ||
hash_results.txt | ||
hashing-results.txt | ||
io_limits.txt | ||
ip-hash.c | ||
reset.c | ||
sockstat.txt | ||
test_hashes.c | ||
test_pools.c | ||
test-acl-args.cfg | ||
test-address-syntax.cfg | ||
test-arg.c | ||
test-backlog.cfg | ||
test-check-expect.cfg | ||
test-connection.cfg | ||
test-cookie-indirect.cfg | ||
test-cookie-insert.cfg | ||
test-cookie-passive.cfg | ||
test-cookie-prefix.cfg | ||
test-cookie-rewrite.cfg | ||
test-disable-404.cfg | ||
test-fsm.cfg | ||
test-fwlc.cfg | ||
test-fwrr.cfg | ||
test-handshakes-chk.cfg | ||
test-handshakes.cfg | ||
test-http-send-name-hdr.cfg | ||
test-inspect-smtp.cfg | ||
test-inspect-ssl.cfg | ||
test-map-ports.cfg | ||
test-pollers.cfg | ||
test-redirect.cfg | ||
test-sample-fetch-args.cfg | ||
test-sample-fetch-conv.cfg | ||
test-sql.cfg | ||
test-str2sa.cfg | ||
test-time.cfg | ||
test-timeout.cfg | ||
test-url-hash.cfg | ||
test-valid-names.cfg | ||
test.c | ||
testinet.c | ||
uri_hash.c |