tun2: retry if possible

This commit is contained in:
Cadey Ratio 2017-03-26 13:52:53 -07:00
parent 4021b4f3aa
commit f09a33e0df
1 changed files with 2 additions and 2 deletions

View File

@ -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)