From 70c561230cf1011e2a56a96c03ab3ae2efb7a945 Mon Sep 17 00:00:00 2001 From: tfheen Date: Wed, 28 Jan 2009 13:56:19 +0000 Subject: [PATCH] Merge r3408: Check ECONNRESET git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3556 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 e01a04ba..00e86b5a 100644 --- a/varnish-cache/bin/varnishtest/vtc_server.c +++ b/varnish-cache/bin/varnishtest/vtc_server.c @@ -97,7 +97,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