timedout
9c27441acf
style: Reformat with nightly
2026-10-23 23:37:51 +02:00
timedout
090203c2ea
style: Remove import
2026-10-12 22:28:50 +01:00
timedout
ff63d9f203
fix: Don't unconditionally mark gapfilled events as referenced
...
This is pointless and fallible
2026-10-12 22:28:50 +01:00
timedout
bc70c4eaff
fix: Mark PDUs as referenced during gapfill immediately
2026-10-12 22:28:50 +01:00
Erwan Leboucher
fe0ab62124
refactor: Unify retry backoff helpers
2026-10-12 11:14:01 +01:00
timedout
b76dc816a4
fix: Handle policy server errors better
2026-10-08 20:26:30 +01:00
timedout
550dd0160a
fix: SEC8
...
Reviewed-By: Ginger <ginger@gingershaped.computer >
Reviewed-By: Jade <jade@ellis.link >
Reviewed-By: Jacob Taylor <jacob@explodie.org >
2026-09-28 02:00:37 +01:00
Erwan Leboucher
cee69b4c8d
fix: Walk auth events once instead of re-queueing parents
2026-09-22 21:19:25 +02:00
timedout
7924e96589
chore: add todo to fix
2026-09-22 00:16:27 +00:00
timedout
6299df3552
style: Document fetch_and_handle_auth_events control flow
2026-09-22 00:16:27 +00:00
Erwan Leboucher
03f60c7002
fix: Don't re-fetch auth events that can never be resolved
2026-09-22 00:16:27 +00:00
timedout
1a8e5ccc09
fix: Gracefully handle extremityless rooms when gapfilling
...
See also: #2259
2026-09-17 00:06:17 +01:00
Erwan Leboucher
ac8b17db1b
fix: Only count non-outlier prev_events in get_missing_events assertion
2026-09-13 18:50:38 +00:00
Jade Ellis
71e101a4dc
style: Run formatting
2026-09-11 15:54:42 +01:00
Jade Ellis
0f97eea31f
style: Run formatting
2026-09-11 15:39:54 +01:00
Ginger
9fbabe2210
chore: Reformat with latest nightly
2026-09-01 12:55:05 -04:00
timedout
03d669594e
fix: Re-invert prev events filter in fetch_prev_events
2026-09-01 16:24:18 +00:00
timedout
c05ead912e
fix: Don't increment backoff if we're still in backoff
2026-09-01 16:24:18 +00:00
timedout
32c652d67d
fix: Actually check backoff before attempting to fetch prevs
2026-09-01 16:24:18 +00:00
timedout
ebf48d1b08
fix: Rebase properly
2026-09-01 16:24:18 +00:00
timedout
37842d482c
style: Remove unused import and reformat
2026-09-01 16:24:18 +00:00
timedout
e58601d8a7
feat: Plumb event backoff into auth and prev fetchers
2026-09-01 16:24:18 +00:00
timedout
dc302799a0
feat: Add pdu pull backoff
...
# Conflicts:
# src/service/rooms/event_handler/mod.rs
2026-09-01 16:24:18 +00:00
Erwan Leboucher
df95abf5ab
fix(federation): Queue PDUs during remote joins
2026-08-22 18:29:54 +00:00
Erwan Leboucher
3efb66c76c
fix: Do not make late-arriving events forward extremities
2026-08-18 16:55:47 +00:00
timedout
7b3e3a26bb
fix: Don't panic when receiving PDUs with illegal auth events
...
Apparently some servers do this??
2026-08-18 17:50:18 +01:00
timedout
21ea9d3ea7
feat: Validate event references in prev and auth events
...
Also threw in some lovely unit tests, as a treat.
2026-08-05 21:11:05 +00:00
timedout
8f0c7a99d7
fix: Don't accidentally continue with fallback room version
...
Fixes a potential issue where continuwuity correctly defaults to room v1
when encountering an unknown room version, but then fails to *stop*
processing when it encounters the room version it doesn't actually
understand.
2026-08-05 21:11:05 +00:00
timedout
b0c1381f03
fix: Re-introduce residency check when handling incoming transactions
2026-07-30 18:02:34 +00:00
timedout
14ff018b9f
fix: Don't soft-fail valid redactions
2026-07-30 18:33:47 +01:00
Erwan Leboucher
7ecd2aa5e2
fix(pdu): Exempt m.room.create from auth_events check
2026-07-14 19:27:46 +02:00
timedout
b6e5a106ff
fix: Don't unhelpfully panic when encountering an unrecognised room version
2026-07-12 02:11:50 +00:00
timedout
fbf81fcdeb
fix: Opportunistically re-use room format rules when parsing incoming PDUs
2026-07-12 02:11:50 +00:00
timedout
7225bf25ae
feat: Persist create events received during the invite process
2026-07-12 02:11:50 +00:00
timedout
995726923b
feat: Enforce new federation invite checks
...
These were introduced in spec v1.16 however we didn't implement them until now for compatibility.
2026-07-12 02:11:50 +00:00
timedout
13bcb5af13
style: Accept event id reference in pdu_format_check_1
2026-07-11 17:27:42 +01:00
timedout
c34d1fe76e
feat: Move PDU validation out of parsing and into check 1
2026-07-11 17:27:42 +01:00
timedout
838764b0ac
style: Remove needless async def for parse_incoming_pdu_with_known_room
2026-07-11 17:27:42 +01:00
timedout
b51a34c1c1
fix: Address review feedback
2026-07-11 17:27:42 +01:00
timedout
2fbb779d12
fix: Invert boolean returned by policy server check
2026-07-11 17:27:42 +01:00
timedout
e16a62e1ed
feat: Add more debug logging to PDU handle funcs
...
Tracking down weird soft-fails
2026-07-11 17:27:42 +01:00
timedout
64a08262ca
perf: Change signature of build_local_dag to remove refmap hacks
2026-07-11 17:27:42 +01:00
timedout
70a3905761
style: Remove duplicate pdu check 1 call in handle_incoming_pdu
2026-07-11 17:27:42 +01:00
timedout
cf9179e8f6
fix: Perform checks 1-3 on auth chain PDUs
2026-07-11 17:27:42 +01:00
timedout
6b899b7f80
refactor: Move PDU checks 1, 2, and 3 into pdu_checks.rs
2026-07-11 17:27:42 +01:00
timedout
ad57fa06fc
style: Unify and document state_before_incoming
2026-07-11 17:27:42 +01:00
timedout
ec9efbada5
fix: Don't reject auth events when they're innocent in auth chain response
2026-07-11 17:27:42 +01:00
timedout
318d2b205a
style: Move PDU check functions into their own module
2026-07-11 17:27:42 +01:00
timedout
99a5f2a9fb
refactor: Reduce complexity of incoming PDU handling
...
* Ignores any events pushed without a room ID
* Removes needless clones for PDU size checking
* Removes incorrect ACL check in incoming handler
* Fast-path handling already handled outlier events
* Remove redundant same-room checks, replace with useful ones
* Combine event rejection and persistence in a single function
* Additional safety assertions in upgrade task
* Split upgrade task into multiple subroutines for reduced cognitive complexity
* Only mutate current state and forward extremities in tandem
* Improve code documentation to better explain the logic flow
2026-07-11 17:27:42 +01:00
timedout
b915692ae1
fix: Remove broken federated invite revoke handling
...
It turns out it never worked in the first place :D
2026-07-10 16:32:38 +01:00