Skip to content

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

@NullVoxPopuli

Description

@NullVoxPopuli

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions