We're having some DNS issues internally that throw NewConnectionErrors at us regularly. This is a workaround.
+1 Looks good!
Should the retry wrapper log a message (at debug level) that it's waiting/retrying? May be useful to help debug performance and/or stability issues. Not a blocker.
Yes. Will add that and then merge. Thanks!
Oh, actually, it already does that with log.warn. :)
log.warn
rebased onto 251c008372a3a92f6b1f2a7ce164d064cf21a440
Pull-Request has been merged by ralph
We're having some DNS issues internally that throw NewConnectionErrors
at us regularly. This is a workaround.