From: phk Date: Fri, 14 Jul 2006 12:47:09 +0000 (+0000) Subject: Have the acceptor launch the session into STP_RECV X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84a120f41a0629a9d6f23e1b3cc2769522fe8005;p=varnish Have the acceptor launch the session into STP_RECV git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@477 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_acceptor.c b/varnish-cache/bin/varnishd/cache_acceptor.c index 644446b7..79fb0e37 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor.c +++ b/varnish-cache/bin/varnishd/cache_acceptor.c @@ -153,6 +153,7 @@ vca_callback(void *arg, int bad) vca_return_session(sp); return; } + sp->step = STP_RECV; WRK_QueueSession(sp); } diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 1f070bef..d5e19114 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -531,7 +531,6 @@ CNT_Session(struct sess *sp) { int done; - sp->step = STP_RECV; for (done = 0; !done; ) { switch (sp->step) { #define STEP(l,u) \ @@ -544,7 +543,6 @@ CNT_Session(struct sess *sp) default: INCOMPL(); } } - } /*