more realistically, only (long) timeout errors can be fixed by retries
Ted Unangst tedu@tedunangst.com
Thu, 11 Jul 2019 01:25:50 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -129,7 +129,7 @@ }
resp, err := client.Do(req) if err != nil { log.Printf("first get failed: %s", err) - if timeout > 0 { + if timeout > 0 || !strings.Contains(err.Error(), "TLS handshake timeout") { return nil, err } resp, err = client.Do(req)