r125 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Thu Apr 6 10:18:53 CEST 2006


Author: phk
Date: 2006-04-06 10:18:53 +0200 (Thu, 06 Apr 2006)
New Revision: 125

Modified:
   trunk/varnish-cache/bin/varnishd/cache_httpd.c
Log:
Add an assert, remove debugging.


Modified: trunk/varnish-cache/bin/varnishd/cache_httpd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_httpd.c	2006-04-06 08:18:11 UTC (rev 124)
+++ trunk/varnish-cache/bin/varnishd/cache_httpd.c	2006-04-06 08:18:53 UTC (rev 125)
@@ -97,6 +97,7 @@
 
 	for (; p < sp->rcv + sp->rcv_len; p = r) {
 		q = strchr(p, '\n');
+		assert(q != NULL);
 		r = q + 1;
 		if (q > p && q[-1] == '\r')
 			q--;
@@ -165,7 +166,6 @@
 		break;
 	}
 	sp->hdr_end = ++p - sp->rcv;
-	VSL(SLT_Debug, 0, "HTTP %u %u", sp->rcv_len, sp->hdr_end);
 	event_del(sp->rd_e);
 	sp->sesscb(sp);
 }




More information about the varnish-commit mailing list