Commit 5ef6e80a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Accept ECONNRESET when closing sockets during cleanup.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3038 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e5e084b8
......@@ -28,6 +28,7 @@
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
......@@ -97,7 +98,7 @@ server_thread(void *priv)
http_process(vl, s->spec, fd, 0);
vtc_log(vl, 3, "shutting fd %d", fd);
AZ(shutdown(fd, SHUT_WR));
AZ(close(fd));
assert(close(fd) == 0 || errno == ECONNRESET);
}
vtc_log(vl, 2, "Ending");
return (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