Willy Tarreau | f1f0683 | 2010-01-05 14:35:03 +0100 | [diff] [blame] | 1 | # This is a test configuration. |
| 2 | # It is used to check the various connection modes |
| 3 | |
| 4 | global |
| 5 | maxconn 100 |
| 6 | |
| 7 | defaults |
| 8 | mode http |
| 9 | timeout client 10000 |
| 10 | timeout server 10000 |
| 11 | timeout connect 10000 |
| 12 | balance roundrobin |
| 13 | |
| 14 | listen 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 | |
| 21 | listen 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 | |
| 28 | listen 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 | |
| 36 | listen 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 | |