Commit df8e27a8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add an assert, remove debugging.


git-svn-id: http://www.varnish-cache.org/svn/trunk@125 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent ef34ce9a
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment