static unsigned xids;
static pthread_t vca_thread_acct;
-struct sess *
+static struct sess *
vca_accept_sess(int fd)
{
socklen_t l;
WRK_QueueSession(sp);
}
-void
-vca_handfirst(struct sess *sp)
-{
- sp->step = STP_FIRST;
- VSL_stats->client_req++;
- sp->xid = xids++;
- VSL(SLT_ReqStart, sp->fd, "XID %u", sp->xid);
- WRK_QueueSession(sp);
-}
-
/*--------------------------------------------------------------------*/
int
if (sp == NULL)
continue;
http_RecvPrep(sp->http);
- vca_handfirst(sp);
+ sp->step = STP_FIRST;
+ VSL_stats->client_req++;
+ sp->xid = xids++;
+ VSL(SLT_ReqStart, sp->fd, "XID %u", sp->xid);
+ WRK_QueueSession(sp);
}
}
#endif
/* vca_acceptor.c */
-struct sess *vca_accept_sess(int fd);
void vca_handover(struct sess *sp, int bad);
-void vca_handfirst(struct sess *sp);
int vca_pollsession(struct sess *sp);
CH_DIED = 4
} child_state = CH_STOPPED;
-const char *ch_state[] = {
+static const char *ch_state[] = {
[CH_STOPPED] = "stopped",
[CH_STARTING] = "starting",
[CH_RUNNING] = "running",
};
struct evbase *mgt_evb;
-struct ev *ev_poker;
-struct ev *ev_listen;
+static struct ev *ev_poker;
+static struct ev *ev_listen;
/*--------------------------------------------------------------------*/
{
char *addr, *port;
char *buf, *vf;
- const char *p, *q;
struct vsb *sb;
struct vclprog *vp;