]> err.no Git - varnish/commitdiff
Check ECONNRESET
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 20 Nov 2008 08:50:56 +0000 (08:50 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 20 Nov 2008 08:50:56 +0000 (08:50 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3408 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_server.c

index f399f61fdc0dd5c4cdddbd70f9b91fdde4b99d40..3dab0dc8bea4c35d2f995a841478c2d1a93912b6 100644 (file)
@@ -98,7 +98,8 @@ server_thread(void *priv)
                vtc_log(vl, 3, "Accepted socket fd is %d", fd);
                http_process(vl, s->spec, fd, 0);
                vtc_log(vl, 3, "shutting fd %d", fd);
-               assert((shutdown(fd, SHUT_WR) == 0) || errno == ENOTCONN);
+               assert((shutdown(fd, SHUT_WR) == 0)
+                   || errno == ENOTCONN || errno == ECONNRESET);
                TCP_close(&fd);
        }
        vtc_log(vl, 2, "Ending");