Commit 7eac67db authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use sp->bereq for handover to PipeSession


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1637 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d0b0956f
......@@ -439,7 +439,7 @@ void http_CopyHome(struct worker *w, int fd, struct http *hp);
#undef HTTPH
/* cache_pipe.c */
void PipeSession(struct sess *sp, struct bereq *bereq);
void PipeSession(struct sess *sp);
/* cache_pool.c */
void WRK_Init(void);
......
......@@ -651,7 +651,8 @@ cnt_pipe(struct sess *sp)
if (sp->handling == VCL_RET_ERROR)
INCOMPL();
PipeSession(sp, bereq);
sp->bereq = bereq;
PipeSession(sp);
sp->step = STP_DONE;
return (0);
}
......
......@@ -72,17 +72,20 @@ rdf(struct pollfd *fds, int idx)
}
void
PipeSession(struct sess *sp, struct bereq *bereq)
PipeSession(struct sess *sp)
{
struct vbe_conn *vc;
char *b, *e;
struct worker *w;
struct bereq *bereq;
struct pollfd fds[2];
int i;
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
CHECK_OBJ_NOTNULL(sp->wrk, WORKER_MAGIC);
w = sp->wrk;
bereq = sp->bereq;
sp->bereq = NULL;
vc = VBE_GetFd(sp);
if (vc == NULL)
......
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