From: phk Date: Tue, 17 Feb 2009 09:46:33 +0000 (+0000) Subject: Convert assert to error report X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb0efd61315890725b1a7deb21b5e17848fee61f;p=varnish Convert assert to error report git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3776 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/vtc_http.c b/varnish-cache/bin/varnishtest/vtc_http.c index 46c84456..5d69a90f 100644 --- a/varnish-cache/bin/varnishtest/vtc_http.c +++ b/varnish-cache/bin/varnishtest/vtc_http.c @@ -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); }