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

Expose connection pool's get timeout via ConnectionOptionsBuilder #212

Merged
merged 1 commit into from
May 13, 2024

Conversation

criminosis
Copy link
Contributor

I was periodically encountering my applications effectively locking up because of Errors stating Async pool timeout . In my use case I'd rather just wait indefinitely for a connection to be available throughout my application. Prior to this PR gremlin-rs was relying on the default pool connection timeout of 30 seconds, coincidentally the same for both the sync pool (r2d2) and the async pool (mobc) providers.

This PR will allow users of the library to modify the timeout, and possibly, for the async pool, opt out of a timeout all together.

@wolf4ood jumped to a PR, but happy to open an issue if you'd like to talk & refine the idea further. If it looks good to you as is mind cutting another release once it's merged?

@criminosis
Copy link
Contributor Author

@wolf4ood just checking in, anything you'd like changed?

Copy link
Owner

@wolf4ood wolf4ood left a comment

Choose a reason for hiding this comment

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

@criminosis sorry i was out this weekend, looks good to me

@wolf4ood wolf4ood merged commit e729960 into wolf4ood:master May 13, 2024
4 checks passed
@wolf4ood
Copy link
Owner

@criminosis released

@criminosis criminosis deleted the expose_pool_get_timeout branch May 13, 2024 12:28
@criminosis
Copy link
Contributor Author

No worries, thank you @wolf4ood!

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