Mailing List Archive

r3156 - trunk/varnish-cache/bin/varnishtest
Author: phk
Date: 2008-09-02 21:53:04 +0200 (Tue, 02 Sep 2008)
New Revision: 3156

Modified:
trunk/varnish-cache/bin/varnishtest/vtc_server.c
Log:
Attempt to close #297 again: shutdown() can also return ENOTCONN error
on redhat.



Modified: trunk/varnish-cache/bin/varnishtest/vtc_server.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_server.c 2008-09-02 17:54:33 UTC (rev 3155)
+++ trunk/varnish-cache/bin/varnishtest/vtc_server.c 2008-09-02 19:53:04 UTC (rev 3156)
@@ -97,7 +97,7 @@
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");