tun2: retry if possible
This commit is contained in:
parent
4021b4f3aa
commit
f09a33e0df
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue