Age | Commit message (Collapse) | Author |
|
|
|
* Adjust forward elatest events updater
* Populate newLatest in all cases
* Re-add existingPrevs loop
|
|
* Refactor federation sender, again
* Clean up better
* Missing operators
* Try to get overflowed events from database
* Fix queries
* Log less
* Comments
* nil PDUs/EDUs shouldn't happen but guard against them for safety
* Tweak logging
* Fix transaction coalescing
* Update comments
* Check nils more
* Remove channels as they add extra complexity and possibly will deadlock
* Don't hold lock while sending transaction
* Less spam about sleeping queues
* Comments
* Bug-fixing
* Don't try to rehydrate twice
* Don't queue in memory for blacklisted destinations
* Don't queue in memory for blacklisted destinations
* Fix a couple of bugs
* Check for duplicates when pulling things out of the database
* Durable transactions, some more refactoring
* Revert "Durable transactions, some more refactoring"
This reverts commit 5daf924eaaefec5e4f7c12c16ca24e898de4adbb.
* Fix deadlock
|
|
|
|
Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com>
|
|
|
|
* 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 24eb5d22524f20e1024b1475debe61ae20538a5a.
* Revert "Default caches configuration"
This reverts commit 464ecd1e64b9d2983f6fd5430e9607519d543cb3.
* Revert "Make federationsender_cache_size configurable"
This reverts commit 4631f5324151e006a15d6f19008f06361b994607.
|
|
* 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>
|
|
|
|
|
|
|
|
* 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
|
|
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Add unpeek
* Don't allow peeks into encrypted rooms
* Fix send tests
* Update consumers
|
|
* Fix /joined_members API response
* Fix golint issue
|
|
|
|
|
|
* Move config, setup, mscs into "setup" top-level folder
* oops, forgot the EDU server
* Add setup
* goimports
|
|
This reverts commit 93c3f1a7b3f0dbd9db8118a16701d63aab17a3ed.
|
|
|
|
* Send client events to appservices
* FormatSync instead of FormatAll
|
|
* Allow disabling federation
* Don't start federation queues if disabled
* Fix for Go 1.13
|
|
* Try to limit how many state events we have to unmarshal
* Comments
|
|
* requestpool: fix initial sync logic error in appendAccountData()
In initial sync, req.since is no longer nil, but instead,
req.since.PDUPosition() and req.since.EDUPosition() returns 0.
This ensures forgotten rooms do not come back as zombies.
* syncapi/requestpool: reintroduce req.since == nil check
|
|
During the tests databases get recreated, and this fails despite of the
user being the owner of a dropped database. Maybe related to certain
PostgreSQL version.
Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com>
|
|
|
|
|
|
* Update last seen on sync requests
* Fix MSC2836 unit tests
* Only update once per minute
* Remove debug logging
* Configurable option
* Simplify updateLastSeen/cleanLastSeen
|
|
|
|
* Add mscs/hooks package, begin work for msc2836
* Flesh out hooks and add SQL schema
* Begin implementing core msc2836 logic
* Add test harness
* Linting
* Implement visibility checks; stub out APIs for tests
* Flesh out testing
* Flesh out walkThread a bit
* Persist the origin_server_ts as well
* Edges table instead of relationships
* Add nodes table for event metadata
* LEFT JOIN to extract origin_server_ts for children
* Add graph walking structs
* Implement walking algorithm
* Add more graph walking tests
* Add auto_join for local rooms
* Fix create table syntax on postgres
* Add relationship_room_id|servers to the unsigned section of events
* Persist the parent room_id/servers in edge metadata
Other events cannot assert the true room_id/servers for the
parent event, only make claims to them, hence why this is
edge metadata.
* guts to pass through room_id/servers
* Refactor msc2836 to allow handling from federation
* Add JoinedVia to PerformJoin responses
* Fix tests; review comments
|
|
While I was breaking through all the TDD bureaucracy to finally push this fix,
it turned out that it already got fixed in #1578. Still I push the rest of the
changes (basically, everything except of actually fixing the bug ;)).
`=` is crucial for matrix-bifrost which turns XMPP @'s into =40.
Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com>
|
|
|
|
* Protect txnReq.newEvents and txnReq.haveEvents with mutex
* Missing defer
* Remove t.haveEventsMutex
|
|
* Added IPv6 setting to nginx conf
https://matrix.to/#/!yomrOFwgFXzmeMAbzX:matrix.org/$sIkSxL002BKottY1Fop-bkusuyCJ1Y0zIFzqSWDYRrc?via=matrix.org&via=privacytools.io&via=dendrite.link
* Add IPv6 support to polylith nginx conf also
|
|
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
|
|
Signed-off-by: Aaron Raimist <aaron@raim.ist>
|
|
* Pass events as pointers
* Fix lint errors
* Update gomatrixserverlib
* Update gomatrixserverlib
* Update to matrix-org/gomatrixserverlib#240
|
|
|
|
|
|
|
|
paginated' test
|
|
The previous implementation was only checking if room history was
"shared", which it wasn't for rooms where a user was invited, or world
readable rooms.
This implementation leverages the IsServerAllowed method, which already
implements the complete verification algorithm.
Signed-off-by: `Mayeul Cantan <oss+matrix@mayeul.net>`
Co-authored-by: Kegsay <kegan@matrix.org>
|
|
Signed-off-by: Felix Hanley <felix@userspace.com.au>
|
|
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
|