]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Reduce log noise due to uTP connection timeouts
authorMatt Joiner <anacrolix@gmail.com>
Wed, 3 Jun 2015 12:44:03 +0000 (22:44 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 3 Jun 2015 12:44:03 +0000 (22:44 +1000)
client.go

index 06c1652e6b7084afc3166bcc6ecbef2ea1ba36d8..b9b9e70ea48a41b4d41a47fad48f42f2b7eab43b 100644 (file)
--- 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