int VBE_GetFd(struct backend *bp, void **ptr);
void VBE_Pass(struct sess *sp);
void VBE_ClosedFd(void *ptr);
+void VBE_RecycleFd(void *ptr);
+
/* cache_httpd.c */
void HttpdAnalyze(struct sess *sp, int rr);
return (vc->fd);
}
+/*--------------------------------------------------------------------*/
+
void
VBE_ClosedFd(void *ptr)
{
free(vc);
}
+/*--------------------------------------------------------------------*/
+
+void
+VBE_RecycleFd(void *ptr)
+{
+ struct vbe_conn *vc;
+
+ vc = ptr;
+ AZ(pthread_mutex_lock(&vbemtx));
+ TAILQ_REMOVE(&vc->vbe->bconn, vc, list);
+ TAILQ_INSERT_HEAD(&vc->vbe->fconn, vc, list);
+ AZ(pthread_mutex_unlock(&vbemtx));
+}
/*--------------------------------------------------------------------*/