From fe5c740196c87452149e4ab87da0b35eb3fdc2ea Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 14 Apr 2024 17:12:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=80=E7=9B=B4=E6=9C=AA?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E7=9A=84Unix=E5=8D=8F=E8=AE=AE=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/listener.go | 5 ----- internal/nodes/listener_unix.go | 28 ---------------------------- 2 files changed, 33 deletions(-) delete mode 100644 internal/nodes/listener_unix.go diff --git a/internal/nodes/listener.go b/internal/nodes/listener.go index e0115b4..5af0226 100644 --- a/internal/nodes/listener.go +++ b/internal/nodes/listener.go @@ -91,11 +91,6 @@ func (this *Listener) listenTCP() error { BaseListener: BaseListener{Group: this.group}, Listener: netListener, } - case serverconfigs.ProtocolUnix: - this.listener = &UnixListener{ - BaseListener: BaseListener{Group: this.group}, - Listener: netListener, - } default: return errors.New("unknown protocol '" + protocol.String() + "'") } diff --git a/internal/nodes/listener_unix.go b/internal/nodes/listener_unix.go deleted file mode 100644 index 863665c..0000000 --- a/internal/nodes/listener_unix.go +++ /dev/null @@ -1,28 +0,0 @@ -package nodes - -import ( - "github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs" - "net" -) - -type UnixListener struct { - BaseListener - - Listener net.Listener -} - -func (this *UnixListener) Serve() error { - // TODO - // TODO 注意管理 CountActiveConnections - return nil -} - -func (this *UnixListener) Close() error { - // TODO - return nil -} - -func (this *UnixListener) Reload(group *serverconfigs.ServerAddressGroup) { - this.Group = group - this.Reset() -}