2
0
mirror of synced 2025-02-23 14:18:13 +00:00

Reduce default handshake timeout to 3s

This commit is contained in:
Matt Joiner 2018-07-15 13:01:22 +10:00
parent f22be3892f
commit 4db3870836

View File

@ -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,