From 7eb75ab0a5ee4f7463d6e5b03e8e6663ddb51b34 Mon Sep 17 00:00:00 2001 From: Austin Vazquez Date: Fri, 1 Mar 2024 20:50:13 +0000 Subject: [PATCH] Handle Windows platform connection close error Signed-off-by: Austin Vazquez --- client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.go b/client.go index 26c3dd2a9..9c68c169d 100644 --- a/client.go +++ b/client.go @@ -392,6 +392,8 @@ func filterCloseErr(err error) error { return ErrClosed case strings.Contains(err.Error(), "use of closed network connection"): return ErrClosed + case strings.Contains(err.Error(), "connection was forcibly closed by the remote host"): + return ErrClosed default: // if we have an epipe on a write or econnreset on a read , we cast to errclosed var oerr *net.OpError