Kegan Dougal
905f815794
bugfix: ensure sentry username/id values are correct
...
Previously there were wrong under high concurrency due to
using the global hub instead of a per-request hub.
2024-03-05 11:30:05 +00:00
kegsay
30f8c5b308
Merge pull request #405 from matrix-org/kegan/spans
...
Add more spans for live updates; change when we early return from buffered events
2024-02-26 14:23:36 +00:00
Kegan Dougal
8ccb0185b3
Include mutexes in spans
2024-02-26 13:01:18 +00:00
Kegan Dougal
dcb8854001
Add more spans for live updates; change when we early return from buffered events
...
- Add more spans to live updates to account for more time spent in various functions.
- When there are a lot of stacked updates in the buffer, return after processing 100
of them rather than relying on >=50 list operations. List operations isn't a good
proxy for the amount of work being done, as the majority of work updates are things
like: receipts, typing, device list updates. This means we will return faster than
before when we have stacked updates, reducing perceived latency, despite having to
still go through the entire buffer.
2024-02-26 12:53:57 +00:00
kegsay
a95f3c78c0
Merge pull request #402 from matrix-org/kegan/timeline-cap
...
Add a sensible timeline_limit cap
2024-02-21 14:08:32 +00:00
Kegan Dougal
6d6a2d6c08
Add a sensible timeline_limit cap
...
To avoid pathological cases where large timeline limits are requested.
2024-02-21 13:22:20 +00:00
kegsay
aa3ea8fe2e
Merge pull request #401 from matrix-org/kegan/msc4102
...
Implement MSC4102
2024-02-16 10:02:57 +00:00
Kegan Dougal
782703cd48
Implement MSC4102
2024-02-15 18:02:40 +00:00
Kegan Dougal
bbb886efd9
v0.99.15
v0.99.15
2024-01-22 12:12:08 +00:00
kegsay
536a8dfb00
Merge pull request #394 from matrix-org/kegan/dm-avatar-only
...
Only emit avatars when DM room is set
2024-01-22 12:10:58 +00:00
Kegan Dougal
51b851a48a
Add live stream test; correctly calculate avatar changes
2024-01-22 11:33:09 +00:00
Kegan Dougal
08d3ec9745
only use the hero avatar if the room is a DM
2024-01-22 10:34:06 +00:00
Kegan Dougal
8d300dc206
Add avatar regression test
2024-01-22 10:05:32 +00:00
kegsay
ef2aa0a521
Merge pull request #392 from matrix-org/kegan/space-leak
...
bugfix: ensure metadata about space children doesn't leak to active connections
2024-01-12 12:28:55 +00:00
Kegan Dougal
4c6d504022
bugfix: ensure metadata about space children doesn't leak to active connections
...
If Alice and Bob are in the same space, and Bob creates a child in that space,
Alice would incorrectly receive global metadata about that child room if Alice
was live syncing at that time. This leak did not expose confidential information
as Alice could receive all that metadata via the /rooms/{roomId}/hierarchy endpoint
already. However, it would cause clients to put the space child room into the room
list which would be very confusing, as it would have no timeline and no other data.
2024-01-12 12:15:38 +00:00
Kegan Dougal
b0d20cefac
v0.99.14
v0.99.14
2024-01-08 10:33:04 +00:00
kegsay
49c92260b8
Merge pull request #385 from nisbet-hubbard/patch-2
...
Fix unix socket permissions
2024-01-08 10:26:03 +00:00
kegsay
e6a2e67195
Merge pull request #390 from matrix-org/kegan/fallback-key-types-fix
...
bugfix: correctly tell clients when the fallback key has been used
2024-01-05 17:33:04 +00:00
Kegan Dougal
eae54fbcb7
bugfix: send [] initially when the poller starts up
...
This ensures we tell clients about used/missing fallback keys initially.
2024-01-05 11:20:33 +00:00
Kegan Dougal
0bd026fc09
bugfix: correctly tell clients when the fallback key has been used
...
Fixes a class of unable to decrypt errors caused when the fallback
key was used but the client was unaware.
2024-01-04 17:06:28 +00:00
nisbet-hubbard
cef9361c6c
Use 0222
2023-12-09 13:50:59 +08:00
nisbet-hubbard
6f99876d0e
Clean-up
2023-12-09 13:01:46 +08:00
nisbet-hubbard
c63e69d040
Update comment
2023-12-09 11:44:13 +08:00
nisbet-hubbard
5777edbcad
Fix unix socket permissions
2023-12-09 11:31:08 +08:00
David Robertson
a8e9c56636
Bump version string, missed in v0.99.13
2023-12-08 14:11:28 +00:00
David Robertson
042010c514
Remind releaser to bump the version string
2023-12-08 14:10:55 +00:00
kegsay
e3b110e13b
Update README.md
v0.99.13
2023-11-24 16:08:50 +00:00
kegsay
c31eb3e661
Merge pull request #382 from matrix-org/kegan/conn-map-tests
...
bugfix: when connections expire, only delete the affected connection
2023-11-24 15:31:04 +00:00
Kegan Dougal
81df9a54d2
Don't pull in complement for UTs as it needs libolm
2023-11-24 15:25:53 +00:00
Kegan Dougal
cc95ebe1e4
Review comments
2023-11-24 15:23:35 +00:00
Kegan Dougal
aec550f9b4
Better comments
2023-11-24 15:19:08 +00:00
Kegan Dougal
129dea816a
bugfix: fix 2 bugs with connection deletion code
...
- Connections are unique for the 3-uple (user, device, conneciton) IDs.
The code was only checking (user, device). This means we would delete
ALL connections for a device, is ANY connection expired.
- ...except we wouldn't, because of the 2nd bug, which is the deletion
code itself. This is missing `i--` so we will not do an ID check on
the element after a deleted index.
Both of these issues have now been fixed.
2023-11-24 14:47:47 +00:00
Kegan Dougal
86f9333fdd
Add failing test
2023-11-24 14:30:08 +00:00
Kegan Dougal
b1fd9a1218
Log errors when removing unknown keys
2023-11-24 14:16:13 +00:00
Kegan Dougal
eb351ff9b8
Add ConnMap UTs; tweak API shape to be a bit more sane
2023-11-24 13:18:24 +00:00
kegsay
a8fb526261
Merge pull request #380 from matrix-org/kegan/log-state-invalidate
...
Log information about the invalidated room
2023-11-21 10:33:47 +00:00
Kegan Dougal
d4f546f77e
Log information about the invalidated room
2023-11-20 10:15:45 +00:00
kegsay
62d3798955
Merge pull request #378 from cyberb/main
...
unix socket support
2023-11-17 18:12:45 +00:00
Boris Rybalkin
bf477c13fc
fix one more IsUnixSocket check
2023-11-17 12:25:49 +00:00
Boris Rybalkin
06fcbb12ae
chmod comment
2023-11-17 12:19:28 +00:00
Boris Rybalkin
c1dca54666
revert assertCustom
2023-11-17 12:13:33 +00:00
Boris Rybalkin
2f2501ec5b
go mod tidy
2023-11-17 12:12:42 +00:00
Boris Rybalkin
8d38785ac0
back to util functions
2023-11-16 19:31:43 +00:00
Boris Rybalkin
4c858fe3ef
fix more docs
2023-11-16 14:07:23 +00:00
Boris Rybalkin
d04a0a7c61
fix docs
2023-11-16 14:01:13 +00:00
Boris Rybalkin
b055d27d22
extract HomeServerUrl struct
2023-11-16 13:57:51 +00:00
Boris Rybalkin
ae73ace4a4
unix socket support
...
Signed-off-by: Boris Rybalkin <ribalkin@gmail.com>
2023-11-16 11:02:53 +00:00
kegsay
b6437ef4b3
Merge pull request #377 from matrix-org/kegan/cache-invalidation-tests
...
Add cache invalidation tests (rejoining rooms)
2023-11-16 10:47:43 +00:00
Kegan Dougal
b58b9ef48e
Also check state is correct when other users use the proxy
2023-11-16 10:34:00 +00:00
Kegan Dougal
079fc9cb75
Review comments
2023-11-16 10:08:35 +00:00