mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Don't spawn goroutines for addPeerLoop, TCP connect timeout of 5 seconds for now
This commit is contained in:
parent
64570a8d3e
commit
909e4e29a8
3 changed files with 8 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue