-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Broken Sync / Timeout Behavior on slow connections #2825
Comments
Is this duplicate of #2737 ? If so feel free to close. |
Here out of interest is the number of entries / byte size of a Riot Client-Sync (for the uncompressed JSON response): Sync Stats {'account_data': 3,
'account_data_size': '2.9 KiB',
'presence_events': 379,
'presence_events_size': '48.7 KiB',
'rooms_invite_size': '2.0 B',
'rooms_join_size': '5.9 MiB',
'rooms_leave_size': '2.0 B',
'rooms_size': '5.9 MiB',
'to_device': 0,
'to_device_size': '2.0 B'} Sync Stats per Room { '!DgvjtOljKujDBrxyHk:matrix.org': { 'account_data_size': '14.0 B',
'ephemeral_events': 2,
'ephemeral_size': '143.2 KiB',
'state_events': 1756,
'state_size': '613.5 KiB',
'timeline_events': 20,
'timeline_size': '6.3 KiB',
'unread_notifications_size': '47.0 B'},
'!XqBunHwQIXUiqCaoxq:matrix.org': { 'account_data_size': '14.0 B',
'ephemeral_events': 2,
'ephemeral_size': '72.9 KiB',
'state_events': 1352,
'state_size': '468.4 KiB',
'timeline_events': 20,
'timeline_size': '5.9 KiB',
'unread_notifications_size': '47.0 B'},
'!cURbafjkfsMDVwdRDQ:matrix.org': { 'account_data_size': '125.0 B',
'ephemeral_events': 2,
'ephemeral_size': '388.4 KiB',
'state_events': 7943,
'state_size': '2.7 MiB',
'timeline_events': 20,
'timeline_size': '6.8 KiB',
'unread_notifications_size': '47.0 B'},
'!gUtFRMMjnvcvTLCQwU:matrix.org': { 'account_data_size': '125.0 B',
'ephemeral_events': 1,
'ephemeral_size': '141.0 B',
'state_events': 7,
'state_size': '2.5 KiB',
'timeline_events': 20,
'timeline_size': '6.1 KiB',
'unread_notifications_size': '47.0 B'},
'!kxIpnPaYREeRkPOtuc:matrix.org': { 'account_data_size': '14.0 B',
'ephemeral_events': 0,
'ephemeral_size': '14.0 B',
'state_events': 0,
'state_size': '14.0 B',
'timeline_events': 8,
'timeline_size': '2.3 KiB',
'unread_notifications_size': '2.0 B'},
'!lfNdkoorQdjhxTjfZB:matrix.org': { 'account_data_size': '14.0 B',
'ephemeral_events': 0,
'ephemeral_size': '14.0 B',
'state_events': 2,
'state_size': '491.0 B',
'timeline_events': 10,
'timeline_size': '3.2 KiB',
'unread_notifications_size': '2.0 B'},
'!mKfbfylfmNRrjRGxCT:matrix.org': { 'account_data_size': '14.0 B',
'ephemeral_events': 0,
'ephemeral_size': '14.0 B',
'state_events': 0,
'state_size': '14.0 B',
'timeline_events': 8,
'timeline_size': '2.3 KiB',
'unread_notifications_size': '2.0 B'},
'!tItmtevQmRsOUnRHpN:matrix.org': { 'account_data_size': '14.0 B',
'ephemeral_events': 0,
'ephemeral_size': '14.0 B',
'state_events': 0,
'state_size': '14.0 B',
'timeline_events': 6,
'timeline_size': '1.8 KiB',
'unread_notifications_size': '2.0 B'},
'!xwuKXrGMSmrmvfauht:matrix.org': { 'account_data_size': '14.0 B',
'ephemeral_events': 0,
'ephemeral_size': '14.0 B',
'state_events': 0,
'state_size': '14.0 B',
'timeline_events': 6,
'timeline_size': '1.8 KiB',
'unread_notifications_size': '2.0 B'},
'!yhqiEdqNjyPbxtUjzm:matrix.org': { 'account_data_size': '14.0 B',
'ephemeral_events': 2,
'ephemeral_size': '89.8 KiB',
'state_events': 4397,
'state_size': '1.4 MiB',
'timeline_events': 20,
'timeline_size': '7.1 KiB',
'unread_notifications_size': '47.0 B'}} |
And the associated request (1.37mb compressed): curl 'https://matrix.org/_matrix/client/r0/sync?filter=25&timeout=0&_cacheBuster=1483482315381&access_token=<access_token>' -H 'Origin: http://127.0.0.1:8080' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36' -H 'accept: application/json' -H 'Referer: http://127.0.0.1:8080/' -H 'Connection: keep-alive' -o /dev/null --dump-header - --compressed
|
dup #2737 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On slow connections it seems that room-state cannot be effectively loaded (for a logged-in user, guest works fine).
Guest
Loading as guest seems to work:
Logged-In User
On Login Sync request times-out:
Console Logging
Request
Response Headers
Speculatively, this might have to do with chunk-size of the SYNC query? And maybe after time-out it should be reduced - also maybe just loading most recent room-state and than parsing back to get things like historical responses / etc. would help?
I'll be able to fill in more details after adding some artificial timeouts and trying this on localhost to narrow down the behavior...
The text was updated successfully, but these errors were encountered: