From: phk Date: Thu, 31 Jul 2008 09:52:27 +0000 (+0000) Subject: Accept ECONNRESET when closing sockets during cleanup. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7b9d1b2d02718bee908d66098231c9508f88f5e;p=varnish Accept ECONNRESET when closing sockets during cleanup. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3038 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/vtc_server.c b/varnish-cache/bin/varnishtest/vtc_server.c index 97bfdfc8..71097d63 100644 --- a/varnish-cache/bin/varnishtest/vtc_server.c +++ b/varnish-cache/bin/varnishtest/vtc_server.c @@ -28,6 +28,7 @@ #include +#include #include #include #include @@ -97,7 +98,7 @@ server_thread(void *priv) http_process(vl, s->spec, fd, 0); vtc_log(vl, 3, "shutting fd %d", fd); AZ(shutdown(fd, SHUT_WR)); - AZ(close(fd)); + assert(close(fd) == 0 || errno == ECONNRESET); } vtc_log(vl, 2, "Ending"); return (NULL);