Commit 7abcbec7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Check ECONNRESET



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3408 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 02bef7ac
......@@ -98,7 +98,8 @@ server_thread(void *priv)
vtc_log(vl, 3, "Accepted socket fd is %d", fd);
http_process(vl, s->spec, fd, 0);
vtc_log(vl, 3, "shutting fd %d", fd);
assert((shutdown(fd, SHUT_WR) == 0) || errno == ENOTCONN);
assert((shutdown(fd, SHUT_WR) == 0)
|| errno == ENOTCONN || errno == ECONNRESET);
TCP_close(&fd);
}
vtc_log(vl, 2, "Ending");
......
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