aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-09Version 0.3.3v0.3.3Neil Alexander
2020-12-09Adjust latest events updater (#1623)Neil Alexander
* Adjust forward elatest events updater * Populate newLatest in all cases * Re-add existingPrevs loop
2020-12-09Federation sender refactor (#1621)Neil Alexander
* 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
2020-12-07Update to matrix-org/gomatrixserverlib@232baceNeil Alexander
2020-12-07Update links to golangci-lint documentation (#1617)bodqhrohro
Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com>
2020-12-07Update FAQNeil Alexander
2020-12-04Federation sender event cache (#1614)Neil Alexander
* 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.
2020-12-04MSC2836 threading: part 2 (#1596)Kegsay
* 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-04Fix broken image in CONTRIBUTING.md (#1612)TR_SLimey
2020-12-04Update sytest-whitelist/blacklistNeil Alexander
2020-12-04federationsender/roomserver: don't panic while federation is disabled (#1615)Ronnie Ebrin
2020-12-04Don't recalculate event IDs so often (#1610)Neil Alexander
* 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-03Hiawatha reverse proxy sample for monolith and fixes to polylith sample (#1609)Petter Jakub Økland
* 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-03Update PROFILING.mdNeil Alexander
2020-12-03Update PROFILING.mdNeil Alexander
2020-12-03Add PROFILING.mdNeil Alexander
2020-12-03Update FAQ.mdNeil Alexander
2020-12-03Update FAQ.mdNeil Alexander
2020-12-03Add FAQ.mdNeil Alexander
2020-12-03Peeking updates (#1607)Neil Alexander
* Add unpeek * Don't allow peeks into encrypted rooms * Fix send tests * Update consumers
2020-12-03Fix /joined_members API response (#1606)alexkursell
* Fix /joined_members API response * Fix golint issue
2020-12-03Simplify create-account (#1608)Neil Alexander
2020-12-02Version 0.3.2v0.3.2Neil Alexander
2020-12-02Top-level setup package (#1605)Neil Alexander
* Move config, setup, mscs into "setup" top-level folder * oops, forgot the EDU server * Add setup * goimports
2020-12-02Revert "Update quic-go"Neil Alexander
This reverts commit 93c3f1a7b3f0dbd9db8118a16701d63aab17a3ed.
2020-12-02Update quic-goNeil Alexander
2020-12-02Send client events to appservices (#1603)Neil Alexander
* Send client events to appservices * FormatSync instead of FormatAll
2020-12-02Add ability to disable federation (#1604)Neil Alexander
* Allow disabling federation * Don't start federation queues if disabled * Fix for Go 1.13
2020-12-02Optimise CheckServerAllowedToSeeEvent (#1602)Neil Alexander
* Try to limit how many state events we have to unmarshal * Comments
2020-12-01syncapi/requestpool: fix initial sync logic error in appendAccountData() (#1594)Ariadne Conill
* 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
2020-12-01Assign CREATEDB permission to the test user (#1591)bodqhrohro
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>
2020-12-01Give fsAPI to keyserver in polylith/gobindNeil Alexander
2020-11-20Version 0.3.1v0.3.1Neil Alexander
2020-11-20Update last seen on sync requests (#1593)Neil Alexander
* Update last seen on sync requests * Fix MSC2836 unit tests * Only update once per minute * Remove debug logging * Configurable option * Simplify updateLastSeen/cleanLastSeen
2020-11-20Add last_seen_ip and last_seen_ts to /devices response (#1592)alexkursell
2020-11-19MSC2836: Threading - part one (#1589)Kegsay
* 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
2020-11-18Allow = in user identifiers (#1590)bodqhrohro
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>
2020-11-18Fix paths in quickstartNeil Alexander
2020-11-18Protect txnReq.newEvents with mutex (#1587)Neil Alexander
* Protect txnReq.newEvents and txnReq.haveEvents with mutex * Missing defer * Remove t.haveEventsMutex
2020-11-18Add IPv6 setting to nginx conf (#1582)TR_SLimey
* 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
2020-11-17Implemented whois endpoint (#1573)David Spenler
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-11-17Update README to remove mention that read receipts are not implemented (#1586)Aaron Raimist
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2020-11-16Pass pointers to events — reloaded (#1583)Neil Alexander
* Pass events as pointers * Fix lint errors * Update gomatrixserverlib * Update gomatrixserverlib * Update to matrix-org/gomatrixserverlib#240
2020-11-16Update docker readmeNeil Alexander
2020-11-16Acknowledgements in changelogNeil Alexander
2020-11-16Version 0.3.0v0.3.0Neil Alexander
2020-11-16Update sytest lists to blacklist flaky 'Forgotten room messages cannot be ↵Neil Alexander
paginated' test
2020-11-16Fix Dendrite not backfilling on world_readable rooms (#1575)Mayeul Cantan
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>
2020-11-16Update build script to run on any POSIX (#1577)Felix Hanley
Signed-off-by: Felix Hanley <felix@userspace.com.au>
2020-11-16Add -version flag (#1581)S7evinK
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>