From 2e345bfff998c572b4f758020f1f0ca3913aead7 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 20 Nov 2008 08:50:56 +0000 Subject: [PATCH] Check ECONNRESET git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3408 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.39.5