Commit c7210cb2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Also accept the undocumented ENOTCONN error return from close(2).

See also http://www.version2.dk/artikel/5153 if you read danish.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2285 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 401ebc32
......@@ -281,7 +281,7 @@ bes_ClosedFd(struct worker *w, struct vbe_conn *vc)
assert(vc->fd >= 0);
WSL(w, SLT_BackendClose, vc->fd, "%s", vc->backend->vcl_name);
i = close(vc->fd);
assert(i == 0 || errno == ECONNRESET);
assert(i == 0 || errno == ECONNRESET || errno == ENOTCONN);
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