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
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
5 changed files with 40 additions and 50 deletions

View file

@ -12,9 +12,8 @@ import (
type linkUNIX struct {
phony.Inbox
*links
dialer *net.Dialer
listener *net.ListenConfig
_listeners map[*Listener]context.CancelFunc
dialer *net.Dialer
listener *net.ListenConfig
}
func (l *links) newLinkUNIX() *linkUNIX {
@ -27,7 +26,6 @@ func (l *links) newLinkUNIX() *linkUNIX {
listener: &net.ListenConfig{
KeepAlive: -1,
},
_listeners: map[*Listener]context.CancelFunc{},
}
return lt
}