[master] ad7ab013c I'm not even going comment on how SunOS returns this to a read(2)...

Poul-Henning Kamp phk at FreeBSD.org
Tue Nov 10 16:31:11 UTC 2020


commit ad7ab013ce120fe7478f38530f52a61fb1300341
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Nov 10 16:30:07 2020 +0000

    I'm not even going comment on how SunOS returns this to a read(2)...

diff --git a/lib/libvarnish/vtcp.c b/lib/libvarnish/vtcp.c
index 1cf21b0a1..90857c329 100644
--- a/lib/libvarnish/vtcp.c
+++ b/lib/libvarnish/vtcp.c
@@ -575,6 +575,8 @@ VTCP_Check(ssize_t a)
 	if (errno == EAGAIN || errno == EWOULDBLOCK)
 		return (1);
 #if (defined (__SVR4) && defined (__sun))
+	if (errno == ECONNREFUSED)	// in r02702.vtc
+		return (1);
 	if (errno == EPROTO)
 		return (1);
 #endif


More information about the varnish-commit mailing list