From: phk Date: Thu, 20 Nov 2008 08:50:56 +0000 (+0000) Subject: Check ECONNRESET X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e345bfff998c572b4f758020f1f0ca3913aead7;p=varnish Check ECONNRESET git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3408 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/vtc_server.c b/varnish-cache/bin/varnishtest/vtc_server.c index f399f61f..3dab0dc8 100644 --- a/varnish-cache/bin/varnishtest/vtc_server.c +++ b/varnish-cache/bin/varnishtest/vtc_server.c @@ -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");