Skip to content

Commit 8ebe994

Browse files
committed
bugfix:修复连接被误关闭的情况
1 parent 8eaa20e commit 8ebe994

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

proxy/server/manager.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,6 @@ func (m *Manager) ReloadNamespacePrepare(namespaceConfig *models.Namespace) erro
273273

274274
newNamespaceManager := ShallowCopyNamespaceManager(currentNamespaceManager)
275275
if err := newNamespaceManager.RebuildNamespace(namespaceConfig); err != nil {
276-
// 重建失败,需要将新建的Namespace关闭(同步关闭)
277-
if ns := newNamespaceManager.GetNamespace(namespaceConfig.Name); ns != nil {
278-
ns.Close(false) // 同步关闭,因为此时还没有启动探活,但可能已经创建了连接池等资源
279-
}
280276
log.Warn("prepare config of namespace: %s failed, err: %v", name, err)
281277
return err
282278
}

0 commit comments

Comments
 (0)