struct vbe_conn *VBE_GetFd(struct sess *sp);
void VBE_ClosedFd(struct worker *w, struct vbe_conn *vc, int already);
void VBE_RecycleFd(struct worker *w, struct vbe_conn *vc);
-struct bereq *vbe_new_bereq(void);
-void vbe_free_bereq(struct bereq *bereq);
+struct bereq * VBE_new_bereq(void);
+void VBE_free_bereq(struct bereq *bereq);
/* cache_ban.c */
void AddBan(const char *, int hash);
*
* $Id$
*
+ * NB: This file is in transition:
+ * In the future it will contain the central part of the backend handling,
+ * refcounting, functions for DNS lookup and connection revalidation etc.
+ * The actual policies will be put in separate files, cache_backend_simple.c,
+ * cache_backend_round_robin.c etc etc.
+ *
* Manage backend connections.
*
* XXX: When we switch VCL we can have vbe_conn's dangling from
/*--------------------------------------------------------------------*/
struct bereq *
-vbe_new_bereq(void)
+VBE_new_bereq(void)
{
struct bereq *bereq;
volatile unsigned len;
/* XXX: no backpressure on pool size */
void
-vbe_free_bereq(struct bereq *bereq)
+VBE_free_bereq(struct bereq *bereq)
{
CHECK_OBJ_NOTNULL(bereq, BEREQ_MAGIC);
}
- vbe_free_bereq(sp->bereq);
+ VBE_free_bereq(sp->bereq);
sp->bereq = NULL;
if (i) {
HSH_Unbusy(sp->obj);
HSH_Deref(sp->obj);
sp->obj = NULL;
- vbe_free_bereq(sp->bereq);
+ VBE_free_bereq(sp->bereq);
sp->bereq = NULL;
sp->step = STP_ERROR;
return (0);
HSH_Deref(sp->obj);
sp->obj = NULL;
sp->step = STP_PASS;
- vbe_free_bereq(sp->bereq);
+ VBE_free_bereq(sp->bereq);
sp->bereq = NULL;
return (0);
}