]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Reduce default handshake timeout to 3s
authorMatt Joiner <anacrolix@gmail.com>
Sun, 15 Jul 2018 03:01:22 +0000 (13:01 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 15 Jul 2018 03:01:22 +0000 (13:01 +1000)
config.go

index 2d9a3afb9168365b2e198f41f86ca6811e6b51a3..72db36eb5227f34d2150f616ea410538e5dd37ea 100644 (file)
--- a/config.go
+++ b/config.go
@@ -136,7 +136,7 @@ func NewDefaultClientConfig() *ClientConfig {
                ExtendedHandshakeClientVersion: "go.torrent dev 20150624",
                Bep20:                          "-GT0001-",
                NominalDialTimeout:             20 * time.Second,
-               MinDialTimeout:                 5 * time.Second,
+               MinDialTimeout:                 3 * time.Second,
                EstablishedConnsPerTorrent:     50,
                HalfOpenConnsPerTorrent:        25,
                TorrentPeersHighWater:          500,