From cb0efd61315890725b1a7deb21b5e17848fee61f Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 17 Feb 2009 09:46:33 +0000 Subject: [PATCH] Convert assert to error report git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3776 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc_http.c | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.39.5