]> err.no Git - varnish/commitdiff
Add an assert, remove debugging.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Apr 2006 08:18:53 +0000 (08:18 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Apr 2006 08:18:53 +0000 (08:18 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@125 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_httpd.c

index b820455f0e6c6d9dae4c2ae27cba1ef55f6595e0..91b3f2c528a1c2f25ef16316cc8dcef87958af98 100644 (file)
@@ -97,6 +97,7 @@ HttpdAnalyze(struct sess *sp, int rr)
 
        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 @@ http_read_f(int fd, short event, void *arg)
                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);
 }