given circumstances is fair game.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2264
d4fa192b-c00b-0410-8231-
f00ffab90ce4
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;