Skip to content

[core rpc][Feature Request] Remove unused client_pool and check if the connection succeeded #1078

@ykwd

Description

@ykwd

Search before asking

  • I searched the issues and found no similar issues.

We’re very glad to have the chance to use the latest client pools feature in coro_rpc. While using it, we’ve encountered a couple of issues:

  1. When using coro_io::client_pools, if a new server address appears, the pools will automatically create a new client pool. However, there’s currently no interface to remove an existing client pool. If the addresses keep changing and are always different from the previous ones, this can potentially lead to a resource leak.

  2. When creating a new client pool using the at interface of pools, there is no return value indicating whether the connection was successful. Currently, our workaround is to create a dedicated API on the remote server to test connectivity. Having a native way to check whether the connection succeeds would be more user-friendly.

What happened + What you expected to happen

Reproduction way

Anything else

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions