mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Link state tracking tweaks and improved shutdown
This commit is contained in:
parent
ef989bef63
commit
b1283e15f6
5 changed files with 40 additions and 50 deletions
|
@ -15,7 +15,6 @@ type linkTCP struct {
|
|||
phony.Inbox
|
||||
*links
|
||||
listenconfig *net.ListenConfig
|
||||
_listeners map[*Listener]context.CancelFunc
|
||||
}
|
||||
|
||||
func (l *links) newLinkTCP() *linkTCP {
|
||||
|
@ -24,7 +23,6 @@ func (l *links) newLinkTCP() *linkTCP {
|
|||
listenconfig: &net.ListenConfig{
|
||||
KeepAlive: -1,
|
||||
},
|
||||
_listeners: map[*Listener]context.CancelFunc{},
|
||||
}
|
||||
lt.listenconfig.Control = lt.tcpContext
|
||||
return lt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue