• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 28852866344

07 Jul 2026 08:34AM UTC coverage: 87.737% (-0.01%) from 87.747%
28852866344

push

github

sergepetrenko
box: allow to close idle sessions by timeout

The timer runs in the IPROTO thread's event loop to keep the
implementation simple: no cross-thread coordination is needed.

Closes #12839

@TarantoolBot document
Title: New `session.users.<name>.idle_timeout` option
Since: Tarantool 3.8

A new declarative configuration option allows to close idle binary
sessions of a user automatically (by default, the feature is disabled).
`session.users.<name>.idle_timeout` is the idle timeout, in seconds, for
connections authenticated as the given user:

    session:
      users:
        alice:
          idle_timeout: 60
        bob:
          idle_timeout: 300

Behavior:

* A connection authenticated as the given user is closed automatically
  if it receives no data from the client for longer than the timeout.
  The client must reconnect or re-authenticate to resume.
* A timeout of zero disables the mechanism for that user.
* Connections with in-flight requests are not closed by this mechanism.
* The option is dynamically changeable at runtime, though active
  connections are not affected.

Root document: https://www.tarantool.io/en/doc/latest/reference/configuration/

71088 of 119406 branches covered (59.53%)

89 of 94 new or added lines in 3 files covered. (94.68%)

53 existing lines in 17 files now uncovered.

106674 of 121584 relevant lines covered (87.74%)

1373217.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

89.71
/src/box/lua/session.c


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc