From: phk Date: Tue, 2 Sep 2008 19:53:04 +0000 (+0000) Subject: Attempt to close #297 again: shutdown() can also return ENOTCONN error X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90499ec6495d0c0966c2e502ad0611428b5b1c38;p=varnish Attempt to close #297 again: shutdown() can also return ENOTCONN error on redhat. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3156 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/vtc_server.c b/varnish-cache/bin/varnishtest/vtc_server.c index eaa74bcc..0948ac22 100644 --- a/varnish-cache/bin/varnishtest/vtc_server.c +++ b/varnish-cache/bin/varnishtest/vtc_server.c @@ -97,7 +97,7 @@ 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); - AZ(shutdown(fd, SHUT_WR)); + assert(shutdown(fd, SHUT_WR) || errno == ENOTCONN); TCP_close(&fd); } vtc_log(vl, 2, "Ending");