From: Matt Joiner Date: Wed, 3 Jun 2015 12:44:03 +0000 (+1000) Subject: Reduce log noise due to uTP connection timeouts X-Git-Tag: v1.0.0~1157 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=5014b62e1772520e9bc84079aaef240eb5620ac8;p=btrtrc.git Reduce log noise due to uTP connection timeouts --- diff --git a/client.go b/client.go index 06c1652e..b9b9e70e 100644 --- a/client.go +++ b/client.go @@ -681,6 +681,9 @@ func doDial(dial func(addr string, t *torrent) (net.Conn, error), ch chan dialRe return } } + if utp && err.Error() == "timed out waiting for ack" { + return + } if err != nil { log.Printf("error dialing %s: %s", addr, err) return