Skip to content

Get 从连接池中获取的连接失效 #5

Description

@achst

假如连接池初始化后,连接的服务方关闭了,连接池中的所有连接就失效了。
因此,每次调用 Get 方法获取连接池中的一个连接时,需要类似 ping 的检查,失效的时候重新创建连接。

建议:
初始化的时候提供一个 Ping 方法,类似 factory close 的。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions