Commit 71055e0b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

When closing a backend connection, we can run into a ECONNRESET which

given circumstances is fair game.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2264 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3d117d81
......@@ -274,12 +274,14 @@ bes_GetFd(const struct sess *sp)
static void
bes_ClosedFd(struct worker *w, struct vbe_conn *vc)
{
int i;
CHECK_OBJ_NOTNULL(vc, VBE_CONN_MAGIC);
CHECK_OBJ_NOTNULL(vc->backend, BACKEND_MAGIC);
assert(vc->fd >= 0);
WSL(w, SLT_BackendClose, vc->fd, "%s", vc->backend->vcl_name);
AZ(close(vc->fd));
i = close(vc->fd);
assert(i == 0 || errno == ECONNRESET);
vc->fd = -1;
VBE_DropRef(vc->backend);
vc->backend = 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