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

v0.9.1 #84

Merged
merged 5 commits into from
Aug 31, 2018
Merged

v0.9.1 #84

merged 5 commits into from
Aug 31, 2018

Conversation

gausby
Copy link
Owner

@gausby gausby commented Aug 31, 2018

There was a small window when the process would register for a
connection after it had gotten a the `:connecting` status from the
registry; in this window the connection could be come available, and
the pubsub would dispatch the connection before the registration
happened, in which case it would reach the receive block too late.

By setting up the connection subscription before checking the registry
we can avoid this problem. We will then unregister the subscription
after the function is done. The down side is that we will need to hit
the ETS table every time we get a connection, but at least we will
avoid processes timing out or even hanging forever when a connection
is requested.
@gausby gausby merged commit be36d8c into master Aug 31, 2018
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