tarantool / tarantool/doc

experimental.connpool: support timeout to close idle connections

Open
#5,260 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.