REGTESTS: extend the default I/O timeouts and make them overridable
With the CI occasionally slowing down, we're starting to see again some spurious failures despite the long 1-second timeouts. This reports false positives that are disturbing and doesn't provide as much value as this could. However at this delay it already becomes a pain for developers to wait for the tests to complete. This commit adds support for the new environment variable HAPROXY_TEST_TIMEOUT that will allow anyone to modify the connect, client and server timeouts. It was set to 5 seconds by default, which should be plenty for quite some time in the CI. All relevant values that were 200ms or above were replaced by this one. A few larger values were left as they are special. One test for the set-timeout action that used to rely on a fixed 1-sec value was extended to a fixed 5-sec, as the timeout is normally not reached, but it needs to be known to compare the old and new values.
This commit is contained in:
parent
b89df41718
commit
f673923629
@ -63,3 +63,9 @@ See also: doc/regression-testing.txt
|
|||||||
of the VTC file,
|
of the VTC file,
|
||||||
- Put these files in a directory with the same name as the code area concerned
|
- Put these files in a directory with the same name as the code area concerned
|
||||||
by the bug ('peers', 'lua', 'acl' etc).
|
by the bug ('peers', 'lua', 'acl' etc).
|
||||||
|
|
||||||
|
Please note that most tests use a common set of timeouts defined by the
|
||||||
|
environment variable HAPROXY_TEST_TIMEOUT. As much as possible, for regular I/O
|
||||||
|
(i.e. not errors), please try to reuse that setting so that the value may
|
||||||
|
easily be adjusted when running in some particularly slow environments, or be
|
||||||
|
shortened to fail faster on developers' machines.
|
||||||
|
@ -24,9 +24,9 @@ server s4 {
|
|||||||
haproxy h1 -arg "-L A" -conf {
|
haproxy h1 -arg "-L A" -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen px
|
listen px
|
||||||
bind "fd@${px}"
|
bind "fd@${px}"
|
||||||
|
@ -25,9 +25,9 @@ server s4 {
|
|||||||
haproxy h1 -arg "-L A" -conf {
|
haproxy h1 -arg "-L A" -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen px
|
listen px
|
||||||
bind "fd@${px}"
|
bind "fd@${px}"
|
||||||
|
@ -25,9 +25,9 @@ server s4 {
|
|||||||
haproxy h1 -arg "-L A" -conf {
|
haproxy h1 -arg "-L A" -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen px
|
listen px
|
||||||
bind "fd@${px}"
|
bind "fd@${px}"
|
||||||
|
6
reg-tests/cache/basic.vtc
vendored
6
reg-tests/cache/basic.vtc
vendored
@ -27,9 +27,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
6
reg-tests/cache/caching_rules.vtc
vendored
6
reg-tests/cache/caching_rules.vtc
vendored
@ -86,9 +86,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
6
reg-tests/cache/expires.vtc
vendored
6
reg-tests/cache/expires.vtc
vendored
@ -48,9 +48,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
6
reg-tests/cache/if-modified-since.vtc
vendored
6
reg-tests/cache/if-modified-since.vtc
vendored
@ -48,9 +48,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
6
reg-tests/cache/if-none-match.vtc
vendored
6
reg-tests/cache/if-none-match.vtc
vendored
@ -33,9 +33,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
6
reg-tests/cache/post_on_entry.vtc
vendored
6
reg-tests/cache/post_on_entry.vtc
vendored
@ -25,9 +25,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
6
reg-tests/cache/sample_fetches.vtc
vendored
6
reg-tests/cache/sample_fetches.vtc
vendored
@ -52,9 +52,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
6
reg-tests/cache/vary.vtc
vendored
6
reg-tests/cache/vary.vtc
vendored
@ -146,9 +146,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
6
reg-tests/cache/vary_accept_encoding.vtc
vendored
6
reg-tests/cache/vary_accept_encoding.vtc
vendored
@ -100,9 +100,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -58,9 +58,9 @@ server s39 {} -start
|
|||||||
|
|
||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
default-server no-check inter 200ms downinter 100ms rise 1 fall 1
|
default-server no-check inter 200ms downinter 100ms rise 1 fall 1
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
|
@ -238,9 +238,9 @@ server s39 {
|
|||||||
|
|
||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
balance first
|
balance first
|
||||||
default-server no-check inter 5ms downinter 1s rise 1 fall 1
|
default-server no-check inter 5ms downinter 1s rise 1 fall 1
|
||||||
|
|
||||||
|
@ -94,9 +94,9 @@ syslog S4 -level notice {
|
|||||||
|
|
||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
default-server check inter 200ms downinter 100s rise 1 fall 1
|
default-server check inter 200ms downinter 100s rise 1 fall 1
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
|
@ -51,9 +51,9 @@ server s2 {
|
|||||||
|
|
||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
option log-health-checks
|
option log-health-checks
|
||||||
default-server inter 200ms downinter 100ms rise 1 fall 1
|
default-server inter 200ms downinter 100ms rise 1 fall 1
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S1_addr}:${S1_port} daemon
|
log ${S1_addr}:${S1_port} daemon
|
||||||
|
@ -27,9 +27,9 @@ syslog S1 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
option log-health-checks
|
option log-health-checks
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
|
@ -114,9 +114,9 @@ syslog S6 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 200ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
option httpchk
|
option httpchk
|
||||||
option log-health-checks
|
option log-health-checks
|
||||||
|
|
||||||
@ -131,9 +131,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 200ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
option httpchk GET /status HTTP/1.1\r\nHdr:\ must-be-removed
|
option httpchk GET /status HTTP/1.1\r\nHdr:\ must-be-removed
|
||||||
option log-health-checks
|
option log-health-checks
|
||||||
http-check send hdr Host "my-www-host" hdr X-test true body "test"
|
http-check send hdr Host "my-www-host" hdr X-test true body "test"
|
||||||
|
@ -91,9 +91,9 @@ syslog S1 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
option log-health-checks
|
option log-health-checks
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
|
@ -10,9 +10,9 @@ feature ignore_unknown_macro
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -53,9 +53,9 @@ syslog S4 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S1_addr}:${S1_port} daemon
|
log ${S1_addr}:${S1_port} daemon
|
||||||
|
@ -66,9 +66,9 @@ syslog S5 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S1_addr}:${S1_port} daemon
|
log ${S1_addr}:${S1_port} daemon
|
||||||
|
@ -42,9 +42,9 @@ syslog S3 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S1_addr}:${S1_port} daemon
|
log ${S1_addr}:${S1_port} daemon
|
||||||
|
@ -32,9 +32,9 @@ syslog S2 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S1_addr}:${S1_port} daemon
|
log ${S1_addr}:${S1_port} daemon
|
||||||
|
@ -63,9 +63,9 @@ syslog S5 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S1_addr}:${S1_port} daemon
|
log ${S1_addr}:${S1_port} daemon
|
||||||
|
@ -51,9 +51,9 @@ syslog S4 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S1_addr}:${S1_port} daemon
|
log ${S1_addr}:${S1_port} daemon
|
||||||
|
@ -29,9 +29,9 @@ haproxy htst -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}" ssl crt ${testdir}/common.pem
|
bind "fd@${fe1}" ssl crt ${testdir}/common.pem
|
||||||
@ -48,9 +48,9 @@ haproxy htst -conf {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S1_addr}:${S1_port} daemon
|
log ${S1_addr}:${S1_port} daemon
|
||||||
|
@ -34,9 +34,9 @@ haproxy htst -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen li1
|
listen li1
|
||||||
bind "fd@${li1}"
|
bind "fd@${li1}"
|
||||||
@ -64,9 +64,9 @@ haproxy htst -conf {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S_ok_addr}:${S_ok_port} daemon
|
log ${S_ok_addr}:${S_ok_port} daemon
|
||||||
|
@ -33,10 +33,10 @@ server s2 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout connect 200ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout check 500ms
|
timeout check "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 5s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 5s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
# must fail fast
|
# must fail fast
|
||||||
|
@ -21,10 +21,10 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout connect 200ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout check 500ms
|
timeout check "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 5s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 5s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
#default-server check inter 200ms rise 1 fall 1
|
#default-server check inter 200ms rise 1 fall 1
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
|
@ -33,9 +33,9 @@ syslog S1 -level notice {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
log ${S1_addr}:${S1_port} daemon
|
log ${S1_addr}:${S1_port} daemon
|
||||||
|
@ -38,9 +38,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 20
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 20
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 20
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
server srv1 ${s1_addr}:${s1_port}
|
server srv1 ${s1_addr}:${s1_port}
|
||||||
@ -88,9 +88,9 @@ haproxy h2 -conf {
|
|||||||
tune.ssl.default-dh-param 2048
|
tune.ssl.default-dh-param 2048
|
||||||
|
|
||||||
defaults
|
defaults
|
||||||
timeout client 20
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 20
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 20
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
default-server downinter 1s inter 500 rise 1 fall 1
|
default-server downinter 1s inter 500 rise 1 fall 1
|
||||||
|
|
||||||
backend be2
|
backend be2
|
||||||
|
@ -180,9 +180,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe-gzip
|
frontend fe-gzip
|
||||||
bind "fd@${fe_gzip}"
|
bind "fd@${fe_gzip}"
|
||||||
|
@ -114,9 +114,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe-gzip
|
frontend fe-gzip
|
||||||
bind "fd@${fe_gzip}"
|
bind "fd@${fe_gzip}"
|
||||||
|
@ -69,9 +69,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe-gzip
|
frontend fe-gzip
|
||||||
bind "fd@${fe_gzip}"
|
bind "fd@${fe_gzip}"
|
||||||
|
@ -6,9 +6,9 @@ feature ignore_unknown_macro
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -14,9 +14,9 @@ server s2 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
log global
|
log global
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen fe_tcp
|
listen fe_tcp
|
||||||
bind "fd@${fe_tcp}"
|
bind "fd@${fe_tcp}"
|
||||||
|
@ -30,9 +30,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
log global
|
log global
|
||||||
|
|
||||||
listen http
|
listen http
|
||||||
|
@ -10,9 +10,9 @@ feature ignore_unknown_macro
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend a
|
frontend a
|
||||||
bind "fd@${fe1}" accept-proxy
|
bind "fd@${fe1}" accept-proxy
|
||||||
@ -43,9 +43,9 @@ client c1 -connect ${h1_fe1_sock} {
|
|||||||
haproxy h2 -conf {
|
haproxy h2 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend a
|
frontend a
|
||||||
bind "fd@${fe1}" accept-proxy
|
bind "fd@${fe1}" accept-proxy
|
||||||
@ -80,9 +80,9 @@ client c2 -connect ${h2_fe1_sock} {
|
|||||||
haproxy h3 -conf {
|
haproxy h3 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend a
|
frontend a
|
||||||
bind "fd@${fe1}" accept-proxy
|
bind "fd@${fe1}" accept-proxy
|
||||||
@ -112,9 +112,9 @@ client c3 -connect ${h3_fe1_sock} {
|
|||||||
haproxy h4 -conf {
|
haproxy h4 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend a
|
frontend a
|
||||||
bind "fd@${fe1}" accept-proxy
|
bind "fd@${fe1}" accept-proxy
|
||||||
|
@ -18,9 +18,9 @@ server s2 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
option socket-stats
|
option socket-stats
|
||||||
|
|
||||||
listen stats
|
listen stats
|
||||||
|
@ -11,9 +11,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -11,9 +11,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -13,9 +13,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -10,9 +10,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -56,9 +56,9 @@ server s2 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -13,9 +13,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -11,9 +11,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -11,9 +11,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -17,9 +17,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
option http-buffer-request
|
option http-buffer-request
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
|
@ -53,9 +53,9 @@ server s2 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode tcp
|
mode tcp
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -24,9 +24,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
# This frontend matches two base64 encoded values and does not need to
|
# This frontend matches two base64 encoded values and does not need to
|
||||||
|
@ -13,9 +13,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -11,9 +11,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -12,9 +12,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -52,9 +52,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -41,9 +41,9 @@ server s {
|
|||||||
haproxy h -conf {
|
haproxy h -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be
|
backend be
|
||||||
server srv ${s_addr}:${s_port}
|
server srv ${s_addr}:${s_port}
|
||||||
|
@ -28,9 +28,9 @@ haproxy h1 -conf {
|
|||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
option httplog
|
option httplog
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
log global
|
log global
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
|
@ -9,9 +9,9 @@ feature ignore_unknown_macro
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
errorfile 400 ${testdir}/errors/400.http
|
errorfile 400 ${testdir}/errors/400.http
|
||||||
errorfile 403 ${testdir}/errors/403.http
|
errorfile 403 ${testdir}/errors/403.http
|
||||||
errorfile 408 /dev/null
|
errorfile 408 /dev/null
|
||||||
|
@ -15,9 +15,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
errorfile 400 ${testdir}/errors/400.http
|
errorfile 400 ${testdir}/errors/400.http
|
||||||
errorfile 404 ${testdir}/errors/404.http
|
errorfile 404 ${testdir}/errors/404.http
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -24,9 +24,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
errorfiles errors-2
|
errorfiles errors-2
|
||||||
errorfile 400 ${testdir}/errors/400.http
|
errorfile 400 ${testdir}/errors/400.http
|
||||||
errorfile 404 ${testdir}/errors/404.http
|
errorfile 404 ${testdir}/errors/404.http
|
||||||
|
@ -12,9 +12,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -122,9 +122,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen feh1
|
listen feh1
|
||||||
bind "fd@${feh1}"
|
bind "fd@${feh1}"
|
||||||
|
@ -44,9 +44,9 @@ haproxy h1 -conf {
|
|||||||
#log stdout format raw daemon
|
#log stdout format raw daemon
|
||||||
mode http
|
mode http
|
||||||
option http-buffer-request
|
option http-buffer-request
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen feh1
|
listen feh1
|
||||||
bind "fd@${feh1}"
|
bind "fd@${feh1}"
|
||||||
|
@ -38,9 +38,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen fe1
|
listen fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -29,9 +29,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 100ms
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
tcp-response inspect-delay 100ms
|
tcp-response inspect-delay 100ms
|
||||||
|
@ -34,9 +34,9 @@ syslog S -level info {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 100ms
|
timeout client 100
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend be1
|
backend be1
|
||||||
server srv1 ${s1_addr}:${s1_port}
|
server srv1 ${s1_addr}:${s1_port}
|
||||||
|
@ -79,9 +79,9 @@ server s2 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen fe1
|
listen fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -72,9 +72,9 @@ server s2 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -88,9 +88,9 @@ server srv_h2_no_ws2 {
|
|||||||
haproxy hap -conf {
|
haproxy hap -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
# h1 frontend connected to h2 frontend
|
# h1 frontend connected to h2 frontend
|
||||||
listen frt_h1_h2
|
listen frt_h1_h2
|
||||||
|
@ -20,9 +20,9 @@ syslog S1 -level info {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 5s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 5s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 5s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}" proto h2
|
bind "fd@${fe}" proto h2
|
||||||
|
@ -11,9 +11,9 @@ feature ignore_unknown_macro
|
|||||||
haproxy hapsrv -conf {
|
haproxy hapsrv -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 5s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 5s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 5s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
@ -40,9 +40,9 @@ haproxy hapsrv -conf {
|
|||||||
haproxy hap -conf {
|
haproxy hap -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
# proto X ws h1 -> websocket on h1
|
# proto X ws h1 -> websocket on h1
|
||||||
listen li
|
listen li
|
||||||
|
@ -47,9 +47,9 @@ server s2 {
|
|||||||
haproxy hap_srv -conf {
|
haproxy hap_srv -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen fe1
|
listen fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
@ -69,9 +69,9 @@ haproxy hap_srv -conf {
|
|||||||
haproxy hap_srv_bad_key -conf {
|
haproxy hap_srv_bad_key -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen fe1
|
listen fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
@ -89,9 +89,9 @@ haproxy hap_srv_bad_key -conf {
|
|||||||
haproxy hap -conf {
|
haproxy hap -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen fe1
|
listen fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -14,9 +14,9 @@ haproxy h1 -W -S -conf {
|
|||||||
mode http
|
mode http
|
||||||
log global
|
log global
|
||||||
option httplog
|
option httplog
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -74,9 +74,9 @@ haproxy h1 -conf {
|
|||||||
mode http
|
mode http
|
||||||
log global
|
log global
|
||||||
option httplog
|
option httplog
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
# accept-proxy so test client can send src ip
|
# accept-proxy so test client can send src ip
|
||||||
@ -129,9 +129,9 @@ haproxy h2 -conf {
|
|||||||
mode http
|
mode http
|
||||||
log global
|
log global
|
||||||
option httplog
|
option httplog
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe2
|
frontend fe2
|
||||||
bind "fd@${fe2}"
|
bind "fd@${fe2}"
|
||||||
|
@ -20,9 +20,9 @@ server s2 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults common
|
defaults common
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
defaults def_front from common
|
defaults def_front from common
|
||||||
http-request set-header x-frontend "%[fe_name]"
|
http-request set-header x-frontend "%[fe_name]"
|
||||||
@ -60,9 +60,9 @@ haproxy h1 -conf {
|
|||||||
haproxy h2 -conf {
|
haproxy h2 -conf {
|
||||||
defaults common
|
defaults common
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
defaults def_front from common
|
defaults def_front from common
|
||||||
http-request allow
|
http-request allow
|
||||||
|
@ -36,9 +36,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -15,9 +15,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -38,9 +38,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -38,9 +38,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${feh1}"
|
bind "fd@${feh1}"
|
||||||
|
@ -22,9 +22,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${feh1}"
|
bind "fd@${feh1}"
|
||||||
|
@ -14,9 +14,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -36,9 +36,9 @@ haproxy h1 -conf {
|
|||||||
mode http
|
mode http
|
||||||
log global
|
log global
|
||||||
option httplog
|
option httplog
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -40,9 +40,9 @@ haproxy h1 -conf {
|
|||||||
mode http
|
mode http
|
||||||
log global
|
log global
|
||||||
option httplog
|
option httplog
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe1}"
|
bind "fd@${fe1}"
|
||||||
|
@ -20,9 +20,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe_path_merge_slashes
|
frontend fe_path_merge_slashes
|
||||||
bind "fd@${fe_path_merge_slashes}"
|
bind "fd@${fe_path_merge_slashes}"
|
||||||
|
@ -28,9 +28,9 @@ server s1 {
|
|||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe
|
frontend fe
|
||||||
bind "fd@${fe}"
|
bind "fd@${fe}"
|
||||||
|
@ -68,9 +68,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
option http-buffer-request
|
option http-buffer-request
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
|
@ -11,24 +11,24 @@ server srv_h1 -repeat 3 {
|
|||||||
|
|
||||||
syslog Slog1 -level info {
|
syslog Slog1 -level info {
|
||||||
recv
|
recv
|
||||||
expect ~ "^.*timeout: 1000 1000.*$"
|
expect ~ "^.*timeout: 5000 5000.*$"
|
||||||
} -start
|
} -start
|
||||||
|
|
||||||
syslog Slog2 -level info {
|
syslog Slog2 -level info {
|
||||||
recv
|
recv
|
||||||
expect ~ "^.*timeout: 1000 5000.*$"
|
expect ~ "^.*timeout: 5000 5000.*$"
|
||||||
} -start
|
} -start
|
||||||
|
|
||||||
syslog Slog3 -level info {
|
syslog Slog3 -level info {
|
||||||
recv
|
recv
|
||||||
expect ~ "^.*timeout: 1000 3000.*$"
|
expect ~ "^.*timeout: 5000 3000.*$"
|
||||||
} -start
|
} -start
|
||||||
|
|
||||||
haproxy hap -conf {
|
haproxy hap -conf {
|
||||||
defaults
|
defaults
|
||||||
timeout connect 1s
|
timeout connect 5s
|
||||||
timeout client 1s
|
timeout client 5s
|
||||||
timeout server 1s
|
timeout server 5s
|
||||||
log global
|
log global
|
||||||
|
|
||||||
listen li1
|
listen li1
|
||||||
|
@ -29,9 +29,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 100ms
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
listen main-fe
|
listen main-fe
|
||||||
bind "fd@${mainfe}"
|
bind "fd@${mainfe}"
|
||||||
|
@ -42,9 +42,9 @@ haproxy h1 -conf {
|
|||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
option httplog
|
option httplog
|
||||||
timeout connect 1000
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1000
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1000
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe_1}"
|
bind "fd@${fe_1}"
|
||||||
|
@ -26,9 +26,9 @@ haproxy h1 -conf {
|
|||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
option httplog
|
option httplog
|
||||||
timeout connect 1000
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1000
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1000
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe_1}"
|
bind "fd@${fe_1}"
|
||||||
|
@ -39,9 +39,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
defaults
|
defaults
|
||||||
log global
|
log global
|
||||||
timeout connect 3000
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1
|
timeout client 1
|
||||||
timeout server 10000
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend fe1
|
frontend fe1
|
||||||
bind "fd@${fe_1}"
|
bind "fd@${fe_1}"
|
||||||
|
@ -38,9 +38,9 @@ haproxy h1 -conf {
|
|||||||
lua-load ${testdir}/bad_http_clt_req_duration.lua
|
lua-load ${testdir}/bad_http_clt_req_duration.lua
|
||||||
|
|
||||||
defaults
|
defaults
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend f1
|
frontend f1
|
||||||
mode http
|
mode http
|
||||||
|
@ -26,8 +26,8 @@ syslog Slog -level info -repeat 100 {
|
|||||||
|
|
||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
global
|
global
|
||||||
lua-load ${testdir}/close_wait_lf.lua
|
lua-load ${testdir}/close_wait_lf.lua
|
||||||
|
@ -11,9 +11,9 @@ server s1 {
|
|||||||
haproxy h1 -W -S -conf {
|
haproxy h1 -W -S -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend myfrontend
|
frontend myfrontend
|
||||||
bind "fd@${my_fe}"
|
bind "fd@${my_fe}"
|
||||||
|
@ -12,9 +12,9 @@ server s1 {
|
|||||||
haproxy h1 -W -S -conf {
|
haproxy h1 -W -S -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
frontend myfrontend
|
frontend myfrontend
|
||||||
bind "fd@${my_fe}"
|
bind "fd@${my_fe}"
|
||||||
|
@ -6,9 +6,9 @@ feature ignore_unknown_macro
|
|||||||
|
|
||||||
haproxy h1 -arg "-L A" -conf {
|
haproxy h1 -arg "-L A" -conf {
|
||||||
defaults
|
defaults
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend stkt
|
backend stkt
|
||||||
stick-table type string size 10m store server_id,gpc0,conn_cur,conn_rate(50000) peers peers
|
stick-table type string size 10m store server_id,gpc0,conn_cur,conn_rate(50000) peers peers
|
||||||
@ -29,9 +29,9 @@ haproxy h1 -arg "-L A" -conf {
|
|||||||
haproxy h2 -arg "-L B" -conf {
|
haproxy h2 -arg "-L B" -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend stkt
|
backend stkt
|
||||||
stick-table type string size 10m store server_id,gpc0,conn_cur,conn_rate(50000) peers peers
|
stick-table type string size 10m store server_id,gpc0,conn_cur,conn_rate(50000) peers peers
|
||||||
@ -51,9 +51,9 @@ haproxy h2 -arg "-L B" -conf {
|
|||||||
haproxy h3 -arg "-L C" -conf {
|
haproxy h3 -arg "-L C" -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
backend stkt
|
backend stkt
|
||||||
stick-table type string size 10m store server_id,gpc0,conn_cur,conn_rate(50000) peers peers
|
stick-table type string size 10m store server_id,gpc0,conn_cur,conn_rate(50000) peers peers
|
||||||
|
@ -6,9 +6,9 @@ feature ignore_unknown_macro
|
|||||||
|
|
||||||
haproxy h1 -arg "-L A" -conf {
|
haproxy h1 -arg "-L A" -conf {
|
||||||
defaults
|
defaults
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
|
|
||||||
peers peers
|
peers peers
|
||||||
@ -28,9 +28,9 @@ haproxy h1 -arg "-L A" -conf {
|
|||||||
haproxy h2 -arg "-L B" -conf {
|
haproxy h2 -arg "-L B" -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
peers peers
|
peers peers
|
||||||
bind "fd@${B}"
|
bind "fd@${B}"
|
||||||
@ -48,9 +48,9 @@ haproxy h2 -arg "-L B" -conf {
|
|||||||
haproxy h3 -arg "-L C" -conf {
|
haproxy h3 -arg "-L C" -conf {
|
||||||
defaults
|
defaults
|
||||||
mode http
|
mode http
|
||||||
timeout client 1s
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout connect 1s
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server 1s
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
|
||||||
peers peers
|
peers peers
|
||||||
bind "fd@${C}"
|
bind "fd@${C}"
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user