]> err.no Git - varnish/commitdiff
Another pipeline fix: don't clobber a pipelined partial header
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Jul 2006 12:17:48 +0000 (12:17 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Jul 2006 12:17:48 +0000 (12:17 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@326 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index a1ee542497b4e4fd54df14015787400ca9e27b09..914fa47276301a4f318f060d0a1e9bd01ba04349 100644 (file)
@@ -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 */