From 84a120f41a0629a9d6f23e1b3cc2769522fe8005 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 14 Jul 2006 12:47:09 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_acceptor.c | 1 + varnish-cache/bin/varnishd/cache_center.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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(); } } - } /* -- 2.39.5