网关重启时恢复权限与分配数据

This commit is contained in:
2025-05-26 10:55:44 +08:00
parent 52907b3fae
commit 8c928a8321
5 changed files with 18 additions and 8 deletions

View File

@@ -103,7 +103,7 @@ func processCtrlConn(_ctx context.Context, conn net.Conn) (err error) {
// 读取命令
cmd, err := reader.ReadByte()
if errors.Is(err, syscall.WSAECONNRESET) {
if errors.Is(err, syscall.ECONNRESET) || errors.Is(err, syscall.WSAECONNRESET) {
slog.Debug("节点重置了控制通道连接(WSAECONNRESET)")
return nil
}