0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-11-18 07:40:53 +01:00
Commit graph

1344 commits

Author SHA1 Message Date
Neil Alexander
5daf924eaa
Durable transactions, some more refactoring 2020-12-08 11:24:00 +00:00
Neil Alexander
79b264029b
Merge branch 'master' into neilalexander/fsrefactor 2020-12-07 16:22:28 +00:00
Neil Alexander
e1d32e2ff1
Update to matrix-org/gomatrixserverlib@232bace 2020-12-07 16:21:55 +00:00
Neil Alexander
cae335bc74
Check for duplicates when pulling things out of the database 2020-12-07 13:14:25 +00:00
Neil Alexander
147b3eddad
Fix a couple of bugs 2020-12-07 12:58:36 +00:00
Neil Alexander
d4bd44ebe6
Don't queue in memory for blacklisted destinations 2020-12-07 12:36:07 +00:00
Neil Alexander
558bfa8b06
Don't queue in memory for blacklisted destinations 2020-12-07 12:22:24 +00:00
Neil Alexander
68a3b3e3fa
Don't try to rehydrate twice 2020-12-07 12:11:30 +00:00
Neil Alexander
880e151439
Bug-fixing 2020-12-07 12:08:23 +00:00
Neil Alexander
7207ad53fe
Comments 2020-12-07 11:58:41 +00:00
Neil Alexander
949ada103b
Less spam about sleeping queues 2020-12-07 11:46:19 +00:00
Neil Alexander
8861f907ed
Don't hold lock while sending transaction 2020-12-07 11:43:35 +00:00
Neil Alexander
36356ac8d1
Remove channels as they add extra complexity and possibly will deadlock 2020-12-07 11:38:32 +00:00
bodqhrohro
45dec20593
Update links to golangci-lint documentation (#1617)
Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com>
2020-12-07 11:23:01 +00:00
Neil Alexander
613a47354f
Check nils more 2020-12-07 10:49:06 +00:00
Neil Alexander
7246580d54
Update comments 2020-12-07 10:28:34 +00:00
Neil Alexander
a91e3d6f35
Merge branch 'master' into neilalexander/fsrefactor 2020-12-07 10:21:39 +00:00
Neil Alexander
8f5393db5f
Update FAQ 2020-12-07 10:20:19 +00:00
Neil Alexander
26cc2d480b
Fix transaction coalescing 2020-12-07 09:54:51 +00:00
Neil Alexander
91ac6e9880
Tweak logging 2020-12-07 09:40:23 +00:00
Neil Alexander
6029c79dfa
nil PDUs/EDUs shouldn't happen but guard against them for safety 2020-12-07 09:29:59 +00:00
Neil Alexander
7faef15339
Comments 2020-12-04 17:37:48 +00:00
Neil Alexander
e0fde0c24e
Log less 2020-12-04 17:22:58 +00:00
Neil Alexander
51f18cb001
Fix queries 2020-12-04 17:20:48 +00:00
Neil Alexander
f8825e0c12
Try to get overflowed events from database 2020-12-04 17:18:23 +00:00
Neil Alexander
9700f0b31c
Missing operators 2020-12-04 16:24:36 +00:00
Neil Alexander
44187311b6
Clean up better 2020-12-04 16:23:58 +00:00
Neil Alexander
bfcf1307e8
Refactor federation sender, again 2020-12-04 16:22:01 +00:00
Neil Alexander
5d65a879a5
Federation sender event cache (#1614)
* Cache federation sender events

* Store in the correct cache

* Update federation event cache

* Fix Unset

* Give EDUs same caching treatment as PDUs

* Make federationsender_cache_size configurable

* Default caches configuration

* Fix unit tests

* Revert "Fix unit tests"

This reverts commit 24eb5d2252.

* Revert "Default caches configuration"

This reverts commit 464ecd1e64.

* Revert "Make federationsender_cache_size configurable"

This reverts commit 4631f53241.
2020-12-04 14:52:10 +00:00
Kegsay
b507312d4c
MSC2836 threading: part 2 (#1596)
* Update GMSL

* Add MSC2836EventRelationships to fedsender

* Call MSC2836EventRelationships in reqCtx

* auth remote servers

* Extract room ID and servers from previous events; refactor a bit

* initial cut of federated threading

* Use the right client/fed struct in the response

* Add QueryAuthChain for use with MSC2836

* Add auth chain to federated response

* Fix pointers

* under CI: more logging and enable mscs, nil fix

* Handle direction: up

* Actually send message events to the roomserver..

* Add children and children_hash to unsigned, with tests

* Add logic for exploring threads and tracking children; missing storage functions

* Implement storage functions for children

* Add fetchUnknownEvent

* Do federated hits for include_children if we have unexplored children

* Use /ev_rel rather than /event as the former includes child metadata

* Remove cross-room threading impl

* Enable MSC2836 in the p2p demo

* Namespace mscs db

* Enable msc2836 for ygg

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-12-04 14:11:01 +00:00
TR_SLimey
c052edafdd
Fix broken image in CONTRIBUTING.md (#1612) 2020-12-04 14:10:01 +00:00
Neil Alexander
68d92fd3b4
Update sytest-whitelist/blacklist 2020-12-04 14:09:21 +00:00
Ronnie Ebrin
a677a288bd
federationsender/roomserver: don't panic while federation is disabled (#1615) 2020-12-04 14:08:17 +00:00
Neil Alexander
1ce9c52442
Don't recalculate event IDs so often (#1610)
* Don't recalculate event IDs so often

* Revert invite change

* Make sure we're using the right NIDs

* Update gomatrixserverlib

* Update to NewEventFromTrustedJSONWithEventID

* Fix go.mod

* Update gomatrixserverlib to matrix-org/gomatrixserverlib#243

* Use BulkSelectEventID
2020-12-04 10:41:07 +00:00
Petter Jakub Økland
19b1d40d64
Hiawatha reverse proxy sample for monolith and fixes to polylith sample (#1609)
* Created polylith reverse proxy sample for Hiawatha

* Create monolith-sample.conf

* Added timeout to proxies and binding explanation.

* Fixed typo.

* Consistency with regards to polylith-sample.conf.
2020-12-03 13:52:00 +00:00
Neil Alexander
52905ffb82
Update PROFILING.md 2020-12-03 13:49:34 +00:00
Neil Alexander
253b05ccde
Update PROFILING.md 2020-12-03 13:48:02 +00:00
Neil Alexander
246866a131
Add PROFILING.md 2020-12-03 13:46:56 +00:00
Neil Alexander
eef8f88092
Update FAQ.md 2020-12-03 13:28:41 +00:00
Neil Alexander
a4bf9921ad
Update FAQ.md 2020-12-03 13:27:48 +00:00
Neil Alexander
71327b8efa
Add FAQ.md 2020-12-03 13:22:32 +00:00
Neil Alexander
be7d8595be
Peeking updates (#1607)
* Add unpeek

* Don't allow peeks into encrypted rooms

* Fix send tests

* Update consumers
2020-12-03 11:11:46 +00:00
alexkursell
2b03d24358
Fix /joined_members API response (#1606)
* Fix /joined_members API response

* Fix golint issue
2020-12-03 11:01:49 +00:00
Neil Alexander
ec7a0e42ae
Simplify create-account (#1608) 2020-12-03 10:55:17 +00:00
Neil Alexander
1f3a498601
Version 0.3.2 2020-12-02 17:46:28 +00:00
Neil Alexander
b5aa7ca3ab
Top-level setup package (#1605)
* Move config, setup, mscs into "setup" top-level folder

* oops, forgot the EDU server

* Add setup

* goimports
2020-12-02 17:41:00 +00:00
Neil Alexander
3ef6187e96
Revert "Update quic-go"
This reverts commit 93c3f1a7b3.
2020-12-02 17:03:36 +00:00
Neil Alexander
93c3f1a7b3
Update quic-go 2020-12-02 16:39:41 +00:00
Neil Alexander
417c7d3569
Send client events to appservices (#1603)
* Send client events to appservices

* FormatSync instead of FormatAll
2020-12-02 15:14:12 +00:00
Neil Alexander
bdf6490375
Add ability to disable federation (#1604)
* Allow disabling federation

* Don't start federation queues if disabled

* Fix for Go 1.13
2020-12-02 15:10:03 +00:00