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

Create wrapper gem or a persistent connection, based off of the relay_pool logic from meshchat #5

Open
NullVoxPopuli opened this issue May 19, 2016 · 0 comments

Comments

@NullVoxPopuli
Copy link
Owner

NullVoxPopuli commented May 19, 2016

https://github.com/NullVoxPopuli/meshchat-core/blob/master/lib/meshchat/network/remote/relay_pool.rb

Basically, this should just function like the ConnectionPool that rails uses.
The behavior should be:

  • have at least a minimum number of connections
  • if a connection dies, start another one to reach minimum number of connections
  • if there is consistently no way to reach the minimum number of connections, log to the console, and try again in a minute, 2 minutes, 5 minutes, 10 minutes, and then stop trying.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant