From c7b9d1b2d02718bee908d66098231c9508f88f5e Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 31 Jul 2008 09:52:27 +0000 Subject: [PATCH] Accept ECONNRESET when closing sockets during cleanup. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3038 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 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); -- 2.39.5