Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add handle_ping/1 pool callback #47

Closed
wants to merge 3 commits into from
Closed

Conversation

oliveigah
Copy link
Contributor

@oliveigah oliveigah commented Nov 1, 2024

closes #46

Let me know what you think about this approach @josevalim!

max_idle_pings: max_idle_pings
max_idle_pings: max_idle_pings,
pool_idle_timeout: pool_idle_timeout,
last_activity_ts: System.monotonic_time(:millisecond)
Copy link
Member

Choose a reason for hiding this comment

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

Yes, this is exactly my concern. If we have to track this, this is now state necessary on every single nimble pool... but not all of them may need it. It is better if you track this on Finch side.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Although I think the implementation overhead is very low, I agree that not all clients may need it.

So it’s all good with me. Feel free to close this PR and the issue, and I’ll move forward with the implementation on the Finch side. Thanks for the feedback!

Copy link
Member

Choose a reason for hiding this comment

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

Thank you for trying it out! And, if the Finch side for some reason is not enough, we already have what is necessary to implement it here. :)

@josevalim josevalim closed this Nov 1, 2024
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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.

new pool callback for idle verification
2 participants