Skip to content

Add the ability to send app-layer keepalive pings#1553

Open
rolandwalker wants to merge 1 commit intomainfrom
RW/app-layer-keepalives
Open

Add the ability to send app-layer keepalive pings#1553
rolandwalker wants to merge 1 commit intomainfrom
RW/app-layer-keepalives

Conversation

@rolandwalker
Copy link
Contributor

Description

The config option is named with default_ under the [connection] section on the theory that it might one day be configurable by individual connections.

It may be hard to prove when this works/does something useful. But I have the issue of frequent reconnections with some servers, and this feature seems to be provided by MySQL Workbench:

image

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

@rolandwalker rolandwalker self-assigned this Feb 14, 2026
The config option is named with "default_" under the [connection]
section on the theory that it might one day be configurable by
individual connections.
@rolandwalker rolandwalker force-pushed the RW/app-layer-keepalives branch from b5e6ea6 to 3097a8f Compare February 14, 2026 12:55
Copy link
Contributor

@scottnemes scottnemes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works with the basic use case of running queries in the CLI. Can test by setting wait_timeout to something low, waiting that long, then running a query and it will reconnect. But if you enable the keepalive to less than the wait_timeout, then you should not see a reconnect after that time.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants