experimental.connpool: support timeout to close idle connections
Open
@veod32 is already working on this.
Since Sep 25, 2025.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
Description
Related dev. issue(s): tarantool#11670
Product: Tarantool Platform
Since: Tarantool 3.5
Root document: experimental.connpool
SME: @georgiy-belyanin
Details
New function in experimental.connpool().
connpool.set_idle_timeout(timeout)
Params:
timeout(number) -- specify a timeout (in seconds) in which the
unused connections indirectly opened by the connpool methods are
closed.
New configuration option connpool.idle_timeout.
A timeout (in seconds) in which the unused connections opened by
connpool indirectly would be closed.
Note: this option does not affect the connections opened by
connpool.connect() since in that case, the user has direct access to
the connection object.
Issued by @georgiy-belyanin in tarantool#11548.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.