]> err.no Git - varnish/commitdiff
Convert assert to error report
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Feb 2009 09:46:33 +0000 (09:46 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Feb 2009 09:46:33 +0000 (09:46 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3776 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_http.c

index 46c8445666918a46d1f164e3fab75f28f09bffc6..5d69a90fa93d0b016a30ae44c5705042a752086d 100644 (file)
@@ -340,6 +340,11 @@ http_rxchar(struct http *hp, int n)
        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);
 }