[master] 561b653 EPIPE is a documented errno in tcp(7) on linux
Poul-Henning Kamp
phk at FreeBSD.org
Fri Feb 23 08:18:14 UTC 2018
commit 561b653523ba9361cea4d9c1841853cc647f13bd
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Feb 23 07:57:12 2018 +0000
EPIPE is a documented errno in tcp(7) on linux
Fixes: #2582
diff --git a/lib/libvarnish/vtcp.c b/lib/libvarnish/vtcp.c
index fb320ce..93c2fce 100644
--- a/lib/libvarnish/vtcp.c
+++ b/lib/libvarnish/vtcp.c
@@ -567,7 +567,7 @@ VTCP_Check(int a)
{
if (a == 0)
return (1);
- if (errno == ECONNRESET || errno == ENOTCONN)
+ if (errno == ECONNRESET || errno == ENOTCONN || errno == EPIPE)
return (1);
#if (defined (__SVR4) && defined (__sun)) || defined (__NetBSD__)
/*
@@ -575,7 +575,7 @@ VTCP_Check(int a)
* connection.
* This is a bug in Solaris and documented behaviour on NetBSD.
*/
- if (errno == EINVAL || errno == ETIMEDOUT || errno == EPIPE)
+ if (errno == EINVAL || errno == ETIMEDOUT)
return (1);
#elif defined (__APPLE__)
/*
More information about the varnish-commit
mailing list