blob: 8d7d6e7ec4a90be450a236147e6b5990584ffa49 [file] [log] [blame]
Willy Tarreauf1f06832010-01-05 14:35:03 +01001# This is a test configuration.
2# It is used to check the various connection modes
3
4global
5 maxconn 100
6
7defaults
8 mode http
9 timeout client 10000
10 timeout server 10000
11 timeout connect 10000
12 balance roundrobin
13
14listen httpclose
15 option httpclose
16 bind :8001
17 server srv 127.0.0.1:8080
18 reqadd X-request:\ mode=httpclose
19 rspadd X-response:\ mode=httpclose
20
21listen server-close
22 option http-server-close
23 bind :8002
24 server srv 127.0.0.1:8080
25 reqadd X-request:\ mode=server-close
26 rspadd X-response:\ mode=server-close
27
28listen httpclose_server-close
29 option httpclose
30 option http-server-close
31 bind :8003
32 server srv 127.0.0.1:8080
33 reqadd X-request:\ mode=httpclose+server-close
34 rspadd X-response:\ mode=httpclose+server-close
35
36listen forceclose
37 option forceclose
38 bind :8004
39 server srv 127.0.0.1:8080
40 reqadd X-request:\ mode=forceclose
41 rspadd X-response:\ mode=forceclose
42