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

Feature: return new events in long-polled /sync calls #333

Open
Benjamin-L opened this issue May 3, 2024 · 0 comments
Open

Feature: return new events in long-polled /sync calls #333

Benjamin-L opened this issue May 3, 2024 · 0 comments
Labels
core-matrix enhancement New feature or request

Comments

@Benjamin-L
Copy link
Contributor

Currently, if there aren't any new events at the beginning of a long-polled /sync call, we just wait for the timeout (capped to 30s) before returning an empty response. The implementation for this behavior is here. What we should be doing instead is watching for new events while we wait for the timeout, and returning a response with new events immediately if any occur. I suspect that fixing this will be a noticeable improvement in message delivery latency for most clients.

@girlbossceo girlbossceo added enhancement New feature or request core-matrix labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-matrix enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants