fix: Perform PDU checks 1, 2, and 3 before yielding a gapfilled PDU #2400
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity!2400
Loading…
Reference in a new issue
No description provided.
Delete branch "nex/fix/gapfill-pdu-format"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Runs some preliminary PDU checks (format + signatures + hashes) to ensure remotes aren't feeding us garbage before we decide to use their result. These checks are run again before handling, but this solves an issue where a PDU can be fetched that we later cannot actually handle, and in turn the event fetch backoff is in-play.
Fixes #2388
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
Seems like this fixes #2388, haven't had it since.
40a2f92b8932644b996961555cab3459ce4f8a77