Don't spawn goroutines for addPeerLoop, TCP connect timeout of 5 seconds for now

This commit is contained in:
Neil Alexander 2019-09-18 23:44:28 +01:00
parent 64570a8d3e
commit 909e4e29a8
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 8 additions and 11 deletions

View file

@ -266,6 +266,7 @@ func (t *tcp) call(saddr string, options interface{}, sintf string) {
}
dialer := net.Dialer{
Control: t.tcpContext,
Timeout: time.Second * 5,
}
if sintf != "" {
ief, err := net.InterfaceByName(sintf)