Link state tracking tweaks and improved shutdown

This commit is contained in:
Neil Alexander
2024-08-11 10:42:25 +01:00
parent ef989bef63
commit b1283e15f6
5 changed files with 40 additions and 50 deletions

View File

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