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

Rework how the conn timeout stuff works #7

Merged
merged 6 commits into from
Dec 10, 2019
Merged

Conversation

prep
Copy link
Owner

@prep prep commented Dec 10, 2019

The consumer will wrap each reserve (and other commands) up in a context timeout of 3 seconds. However, this timeout is started before it has acquired the lock of a beanstalk connection.

This PR removes the context timeouts for those specific commands and moves the timeout to a config variable that is set after having acquired the lock of a connection. Timeouts in contexts are still honoured, if present.

@prep prep merged commit 3e23717 into master Dec 10, 2019
@prep prep deleted the rework-the-conn-timeout branch April 12, 2020 13:06
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.

None yet

1 participant