all repos — honk @ 2c026cd1a0b558cea353d1766c5a948c31a2fa80

my fork of honk

more realistically, only (long) timeout errors can be fixed by retries
Ted Unangst tedu@tedunangst.com
Thu, 11 Jul 2019 01:25:50 -0400
commit

2c026cd1a0b558cea353d1766c5a948c31a2fa80

parent

3f4169a1687ccce0f03c45a98181b7bbf901074f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.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)