From c4be61e854ef321dbf93f0d20c5c1f3391d52cd9 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 16 Nov 2017 12:01:42 +0100 Subject: [PATCH] retrieve the root cause of the error --- proxy/http/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/server.go b/proxy/http/server.go index a144dd0e8..a8c75bb4a 100644 --- a/proxy/http/server.go +++ b/proxy/http/server.go @@ -65,7 +65,7 @@ func parseHost(rawHost string, defaultPort net.Port) (net.Destination, error) { } func isTimeout(err error) bool { - nerr, ok := err.(net.Error) + nerr, ok := errors.Cause(err).(net.Error) return ok && nerr.Timeout() }