Skip to content

pool: connect relays on-demand #730

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

Open
yukibtc opened this issue Jan 25, 2025 · 0 comments
Open

pool: connect relays on-demand #730

yukibtc opened this issue Jan 25, 2025 · 0 comments

Comments

@yukibtc
Copy link
Member

yukibtc commented Jan 25, 2025

Add option to connect relays on demand (disabled by default). This can be useful for gossip, when (most likely) many relays are added to the pool.
If the option is enabled, automatically put on "sleep" (disconnect) the relays after some time and reconnect them on-demand (i.e., when sending an event, when fetching, ...). If there are active long-lived subscriptions, keep the connection up.

Alternatively, put on "sleep" relays that have only the GOSSIP flag and that have no active long-lived subscriptions.

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

No branches or pull requests

1 participant