[master] a8b453c Allow EPIPE in VTCP_Check()
Nils Goroll
nils.goroll at uplex.de
Tue Mar 21 13:47:05 CET 2017
commit a8b453cb432e9717e1a8afab91433aa4294ba27e
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Mar 21 13:41:25 2017 +0100
Allow EPIPE in VTCP_Check()
We may see it after a write on a socket which has been closed by
the remote end.
Fixes #2267
diff --git a/lib/libvarnish/vtcp.c b/lib/libvarnish/vtcp.c
index 67be8a0..9122f3e 100644
--- a/lib/libvarnish/vtcp.c
+++ b/lib/libvarnish/vtcp.c
@@ -577,7 +577,7 @@ VTCP_Check(int a)
* connection.
* This is a bug in Solaris and documented behaviour on NetBSD.
*/
- if (errno == EINVAL || errno == ETIMEDOUT)
+ if (errno == EINVAL || errno == ETIMEDOUT || errno == EPIPE)
return (1);
#endif
return (0);
More information about the varnish-commit
mailing list