test "basic default HTTP transactions"
-server s1 -listen localhost:9080 {
+server s1 -listen 127.0.0.1:9080 {
rxreq
txresp
}
server s1 -start
-client c1 -connect localhost:9080 {
+client c1 -connect 127.0.0.1:9080 {
txreq
rxresp
}
test "basic default HTTP transactions with expect"
-server s1 -listen localhost:9080 {
+server s1 -listen 127.0.0.1:9080 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
server s1 -start
-client c1 -connect localhost:9080 {
+client c1 -connect 127.0.0.1:9080 {
txreq
rxresp
expect resp.proto == HTTP/1.1
test "basic default HTTP transactions with expect and options"
-server s1 -listen localhost:9080 {
+server s1 -listen 127.0.0.1:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
server s1 -start
-client c1 -connect localhost:9080 {
+client c1 -connect 127.0.0.1:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo
rxresp
expect resp.proto == HTTP/1.2
test "dual independent HTTP transactions"
-server s1 -listen localhost:9080 {
+server s1 -listen 127.0.0.1:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
txresp -proto HTTP/1.2 -status 201 -msg Foo
}
-server s2 -listen localhost:9081 {
+server s2 -listen 127.0.0.1:9081 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
server s1 -start
server s2 -start
-client c1 -connect localhost:9080 {
+client c1 -connect 127.0.0.1:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo
rxresp
expect resp.proto == HTTP/1.2
expect resp.msg == Foo
}
-client c2 -connect localhost:9081 {
+client c2 -connect 127.0.0.1:9081 {
txreq
rxresp
expect resp.proto == HTTP/1.1
test "dual shared server HTTP transactions"
-server s1 -listen localhost:9080 -repeat 2 {
+server s1 -listen 127.0.0.1:9080 -repeat 2 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
server s1 -start
-client c1 -connect localhost:9080 {
+client c1 -connect 127.0.0.1:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo
rxresp
expect resp.proto == HTTP/1.2
expect resp.msg == Foo
}
-client c2 -connect localhost:9080 {
+client c2 -connect 127.0.0.1:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo
rxresp
expect resp.proto == HTTP/1.2
test "dual shared client HTTP transactions"
-server s1 -listen localhost:9080 {
+server s1 -listen 127.0.0.1:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
txresp -proto HTTP/1.2 -status 201 -msg Foo
}
-server s2 -listen localhost:9081 {
+server s2 -listen 127.0.0.1:9081 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
server s1 -start
server s2 -start
-client c1 -connect localhost:9080 {
+client c1 -connect 127.0.0.1:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo
rxresp
expect resp.proto == HTTP/1.2
client c1 -run
-client c1 -connect localhost:9081 {
+client c1 -connect 127.0.0.1:9081 {
txreq
rxresp
expect resp.proto == HTTP/1.1
test "bidirectional message bodies"
-server s1 -listen localhost:9080 {
+server s1 -listen 127.0.0.1:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
server s1 -start
-client c1 -connect localhost:9080 {
+client c1 -connect 127.0.0.1:9080 {
txreq -req PUT -proto HTTP/1.0 -url /foo \
-hdr "Content-Length: 10" \
-body "123456789\n"
test "TCP reuse"
-server s1 -listen localhost:9080 {
+server s1 -listen 127.0.0.1:9080 {
rxreq
expect req.url == "/1"
txresp -hdr "Content-Length: 10" -body "123456789\n"
server s1 -start
-client c1 -connect localhost:9080 {
+client c1 -connect 127.0.0.1:9080 {
txreq -url "/1" -req "POST" \
-hdr "Content-Length: 10" -body "abcdefghi\n"
rxresp
#
# $Id$
-varnish v1 -arg "-b localhost:9080" -start
+varnish v1 -arg "-b 127.0.0.1:9080" -start
server s1 {
rxreq
test "Check that multiple thread pools all get started"
-varnish v1 -arg "-b localhost:9080 -p thread_pools=9" -start
+varnish v1 -arg "-b 127.0.0.1:9080 -p thread_pools=9" -start
server s1 {
rxreq
vtc_log(s->vl, 0, "Server name must start with 's'");
exit (1);
}
- s->listen = "localhost:9080";
+ s->listen = "127.0.0.1:9080";
AZ(VSS_parse(s->listen, &s->addr, &s->port));
s->repeat = 1;
s->depth = 1;
vsb_printf(vsb,
"backend %s { .host = \"%s\"; .port = \"%s\"; }\n",
s->name,
- s->addr == NULL ? "localhost" : s->addr,
+ s->addr == NULL ? "127.0.0.1" : s->addr,
s->port);
}
}