git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2730
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#
# $Id$
-varnish v1 -launch
-
-varnish v1 -vcl {
- backend s1 {
- .host = "localhost";
- .port = "9080";
- }
- sub vcl_recv {
- pipe;
- }
-}
-
-varnish v1 -start
-
server s1 -repeat 1 {
rxreq
txresp \
-body "012345\n"
}
+varnish v1 -launch
+
+varnish v1 -vcl+backend {
+ sub vcl_recv {
+ pipe;
+ }
+}
+
+varnish v1 -start
+
server s1 -start
client c1 {
client c1 -run
-server s1 -wait
+# server s1 -wait
-varnish v1 -stop
+# varnish v1 -wait
/* Reset and free */
VTAILQ_FOREACH_SAFE(c, &clients, list, c2) {
VTAILQ_REMOVE(&clients, c, list);
+ if (c->tp != NULL)
+ client_wait(c);
FREE_OBJ(c);
/* XXX: MEMLEAK */
}
/* Reset and free */
VTAILQ_FOREACH_SAFE(s, &servers, list, s2) {
VTAILQ_REMOVE(&servers, s, list);
+ if (s->sock >= 0)
+ server_wait(s);
FREE_OBJ(s);
/* XXX: MEMLEAK */
}