From: phk Date: Wed, 5 Jul 2006 12:17:48 +0000 (+0000) Subject: Another pipeline fix: don't clobber a pipelined partial header X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ab1714c1357abc73d0667a4cb3fe2c30d7d8cb8;p=varnish Another pipeline fix: don't clobber a pipelined partial header git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@326 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index a1ee5424..914fa472 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -377,11 +377,12 @@ http_RecvHead(struct http *hp, int fd, struct event_base *eb, http_callback_f *f func(arg, 1); return; } + } else { + hp->v = hp->s; + hp->t = hp->s; } hp->callback = func; hp->arg = arg; - hp->v = hp->s; - hp->t = hp->s; event_set(&hp->ev, fd, EV_READ | EV_PERSIST, http_read_f, hp); event_base_set(eb, &hp->ev); event_add(&hp->ev, NULL); /* XXX: timeout */