r3776 - trunk/varnish-cache/bin/varnishtest

phk at projects.linpro.no phk at projects.linpro.no
Tue Feb 17 10:46:33 CET 2009


Author: phk
Date: 2009-02-17 10:46:33 +0100 (Tue, 17 Feb 2009)
New Revision: 3776

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc_http.c
Log:
Convert assert to error report



Modified: trunk/varnish-cache/bin/varnishtest/vtc_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_http.c	2009-02-17 09:09:08 UTC (rev 3775)
+++ trunk/varnish-cache/bin/varnishtest/vtc_http.c	2009-02-17 09:46:33 UTC (rev 3776)
@@ -340,6 +340,11 @@
 	int i;
 
 	i = http_rxchar_eof(hp, n);
+	if (i <= 0) {
+		vtc_log(hp->vl, 0, "HTTP rx failed (%s)",
+		    strerror(errno));
+		exit (1);
+	}
 	assert(i > 0);
 }
 



More information about the varnish-commit mailing list