mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-20 18:50:08 +00:00
d7a8f14145
We rename all the VTC files to avoid name collisions when importing/backporting.
34 lines
667 B
Plaintext
34 lines
667 B
Plaintext
# Shipped with the commit fixing the bug.
|
|
|
|
#REGTEST_TYPE=bug
|
|
|
|
varnishtest "Stick Table: Crash when accessing unknown key."
|
|
feature ignore_unknown_macro
|
|
|
|
server s0 {
|
|
rxreq
|
|
txresp
|
|
} -start
|
|
|
|
haproxy h0 -conf {
|
|
defaults
|
|
timeout connect 5000ms
|
|
timeout client 50000ms
|
|
timeout server 50000ms
|
|
|
|
frontend test
|
|
mode http
|
|
${no-htx} option http-use-htx
|
|
bind "fd@${fe1}"
|
|
stick-table type ip size 1m expire 1h store gpc0
|
|
http-request deny if { src,table_trackers(test) eq 1 }
|
|
http-request deny if { src,in_table(test) }
|
|
http-request deny deny_status 200
|
|
} -start
|
|
|
|
client c0 -connect ${h0_fe1_sock} {
|
|
txreq -url "/"
|
|
rxresp
|
|
expect resp.status == 200
|
|
} -run
|