element-hq / element-hq/element-web

Element (occasionally) repeatedly spams `/sync`

Open
#25,324 5 comments 0 reactions 0 assignees View on GitHub
T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Use app.element.io
2. Create a message or two
3. Sit back and observe the developer tools

### Outcome

#### What did you expect?
To only request `/sync` upon when
#### What happened instead?
All these elements share the same `since` parameter.
About 20,000 requests have been made in a matter of 30 seconds
![element-sync-spam](https://github.com/vector-im/element-web/assets/33794419/a8a570c4-8854-491e-a48e-00887008a0df)

I suspect this is an synapse issue, where long polling is incorrect.

### Operating system

Arch Linux

### Browser information

Chromium Version 112.0.5615.165

### URL for webapp

localhost

### Application version

Element version: 1.11.26 Olm version: 3.2.12

### Homeserver

Synapse 1.82.0

### Will you send logs?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.