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

Startup time can be significantly slow when a large number of Telegram puppets are configured #697

Open
Half-Shot opened this issue Nov 19, 2021 · 0 comments · May be fixed by #698
Open

Comments

@Half-Shot
Copy link
Contributor

Half-Shot commented Nov 19, 2021

Related to #316

The bridge will await all connections to telegram on startup which means for a bridge handling several hundred connections, this can take minutes. Ideally, this would happen after startup in the background so as not to impact traffic. I'd probably suggest a model similar to the IRC bridge.

  • The bridge should start a background task to connect all users on startup.
  • The bridge does not await this task and starts up.
  • When a Matrix user talks, that connection (if not connected), should be bumped in the queue to allow the message to be bridged (albeit delayed).
  • Eventually all the connections will have completed, this may take some time because the bridge still needs to connect everyone to Telegram, but critically it shouldn't block the bridge handling chats.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant