-
Notifications
You must be signed in to change notification settings - Fork 564
Limit outgoing to_device EDU size to 65536 #18416
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
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
61fa1b9
Limit to_device EDU size to 65536
MatMaul c80f24d
Increment to_device stream for each EDU otherwise we loose some
MatMaul eda00e1
Simplify
MatMaul 6627bed
Add comment
MatMaul c6bc691
Cosmetic
MatMaul 57ab541
Cosmetic
MatMaul a0e6dc3
Add logs
MatMaul 9ce1488
Improve logs
MatMaul 5e86c59
fix bug
MatMaul 35d98b6
Improve logs
MatMaul 6be7bcc
Merge remote-tracking branch 'origin/develop' into edu-limit-size
MatMaul a15a585
Apply suggestion from @MadLittleMods
mcalinghee e81e737
Apply suggestion from @MadLittleMods
mcalinghee 1f9d243
Apply suggestion from @MadLittleMods
mcalinghee b503f97
Apply suggestion from @MadLittleMods
mcalinghee eef8132
add comment and add helper create_new_to_device_edu_content()
mcalinghee 0e74f3e
Merge branch 'develop' into edu-limit-size
mcalinghee cf7441a
add helper method and refactor EDUs constant
mcalinghee 71a26a4
fix trial tests due to twisted lib issue
mcalinghee 55afc88
try to fix test flaky issue
mcalinghee f234226
Merge remote-tracking branch 'origin/develop' into edu-limit-size
MatMaul cb3bcb5
Merge remote-tracking branch 'origin/develop' into edu-limit-size
MatMaul fe51d27
Merge remote-tracking branch 'origin/develop' into edu-limit-size
MatMaul 7536ac0
Adress comments
MatMaul 206b0b0
Fix mypy
MatMaul d1700d1
Adress comment
MatMaul 4bb5f26
Adress comment
MatMaul 9a1e646
Adress comments
MatMaul fd615d3
Adress comments
MatMaul 5c115b9
Adress comments
MatMaul ca9af7e
Address comments
MatMaul e59be78
Remove useless whitespace change
MatMaul b5777d3
Merge remote-tracking branch 'origin/develop' into edu-limit-size
MatMaul 6b57cd3
Update tests/rest/client/test_sendtodevice.py
MatMaul 55afe9a
Update tests/rest/client/test_sendtodevice.py
MatMaul 67e7b50
Apply suggestion from @MadLittleMods
MatMaul 384ce4d
Apply suggestion from @MadLittleMods
MatMaul f38f853
Apply suggestions from code review
MatMaul 71a2c23
Update tests/rest/client/test_sendtodevice.py
MatMaul cf5ca16
Update tests/rest/client/test_sendtodevice.py
MatMaul c340373
typos
MatMaul 741abb2
Use split in 2 alg
MatMaul e2d7eeb
Merge remote-tracking branch 'origin/develop' into edu-limit-size
MatMaul 6c1606c
improve tests
MatMaul eb05042
Rename split method
MatMaul 045c0bf
split db method in 2
MatMaul 6406415
Naming and comments
MatMaul 5347b78
Add comment
MatMaul 4aa1bab
Add comment
MatMaul ab2951b
Address comments
MatMaul 31f0029
remove useless pump
MatMaul 33ff986
Remove try except
MatMaul ff046f7
remove workaround for test failures
MatMaul 14a7515
remove random from tests
MatMaul a55fc07
Adress comments
MatMaul 6c93d88
Add spec link
MatMaul 4b7da00
Update synapse/handlers/devicemessage.py
MatMaul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| A long queue of to-device messages could prevent outgoing federation because of the size of the transaction, let's limit the to-device EDU size to a reasonable value. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.