r3156 - trunk/varnish-cache/bin/varnishtest

phk at projects.linpro.no phk at projects.linpro.no
Tue Sep 2 21:53:05 CEST 2008


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");




More information about the varnish-commit mailing list