Skip to content

Add keepalive-time as an option#107

Open
devn wants to merge 1 commit intotomekw:masterfrom
devn:devn/add-keepalive-time
Open

Add keepalive-time as an option#107
devn wants to merge 1 commit intotomekw:masterfrom
devn:devn/add-keepalive-time

Conversation

@devn
Copy link
Copy Markdown

@devn devn commented Feb 5, 2026

Allow users to set keepaliveTime via the wrapper.

Comment thread src/hikari_cp/core.clj
(.setMaxLifetime max-lifetime)
(.setMinimumIdle minimum-idle)
(.setMaximumPoolSize maximum-pool-size))
(when keepalive-time (.setKeepaliveTime config keepalive-time))
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think you should set it to the default value and set unconditionally, like with .setMinimumIdle for example

Comment thread src/hikari_cp/core.clj
[x]
(>= x 1000))

(defn- gte-30000?
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Should this be renamed to min-allowed-keepalive-time?

@tomekw
Copy link
Copy Markdown
Owner

tomekw commented Feb 5, 2026

Hey @devn! Thank you for the PR. Could you update the README and CHANGELOG under unreleased? 🙏

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