From f09a33e0df4d168991b3341cf1711e7366cdb833 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 26 Mar 2017 13:52:53 -0700 Subject: [PATCH] tun2: retry if possible --- lib/tun2/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tun2/server.go b/lib/tun2/server.go index 4335f82..0dbe173 100644 --- a/lib/tun2/server.go +++ b/lib/tun2/server.go @@ -302,7 +302,7 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) { c.cancel() - return nil, err + return s.RoundTrip(req) } defer stream.Close() @@ -318,7 +318,7 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) { c.cancel() - return nil, err + return s.RoundTrip(req) } buf := bufio.NewReader(stream)