From: Matt Joiner Date: Sun, 15 Jul 2018 03:01:22 +0000 (+1000) Subject: Reduce default handshake timeout to 3s X-Git-Tag: v1.0.0~74 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4db38708360d47aecb2fab22dee4edaa48423cfc;p=btrtrc.git Reduce default handshake timeout to 3s --- diff --git a/config.go b/config.go index 2d9a3afb..72db36eb 100644 --- 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,