#include <unistd.h>
#include "libvarnish.h"
+#include "shmlog.h"
#include "vcl_lang.h"
+#include "cache.h"
/*
* The internal backend structure for managing connection pools per
} while ((res0 = res0->ai_next) != NULL);
freeaddrinfo(res);
vc->fd = s;
+ VSL(SLT_BackendOpen, vc->fd, "");
return;
}
struct vbe_conn *vc;
vc = ptr;
+ VSL(SLT_BackendClose, vc->fd, "");
+ close(vc->fd);
AZ(pthread_mutex_lock(&vbemtx));
TAILQ_REMOVE(&vc->vbe->bconn, vc, list);
AZ(pthread_mutex_unlock(&vbemtx));
struct vbe_conn *vc;
vc = ptr;
+ VSL(SLT_BackendReuse, vc->fd, "");
AZ(pthread_mutex_lock(&vbemtx));
TAILQ_REMOVE(&vc->vbe->bconn, vc, list);
TAILQ_INSERT_HEAD(&vc->vbe->fconn, vc, list);