Commit graph

21 commits

Author SHA1 Message Date
Neil Alexander b73139e68c Check HTTP response codes, push new invites to front of queue 2020-05-07 10:43:07 +01:00
Neil Alexander e4f828101d Remodel a bit with channels 2020-05-06 15:43:38 +01:00
Neil Alexander 7ac699bc77 Dispatch sends again 2020-05-06 14:15:33 +01:00
Neil Alexander 18cb75b0ac Dedupe destinations, fix other bug hopefully 2020-05-06 14:00:04 +01:00
Neil Alexander 9d293caec8 Don't retry sucessful invites, don't dispatch sendEvent, sendInvite etc 2020-05-06 13:15:32 +01:00
Neil Alexander 53f690f2d3 Improve logic a bit, don't block on wakeup, move idle check 2020-05-06 12:39:55 +01:00
Neil Alexander b167f3c608 Break out statistics (tracked component-wide), report success and failures from Perform actions 2020-05-06 10:04:12 +01:00
Neil Alexander 7434715f70 Tidy up a bit 2020-05-06 09:30:12 +01:00
Neil Alexander 4ff46624ff Don't take copies again 2020-05-05 17:14:23 +01:00
Neil Alexander ade8352045 Don't accidentally drop queued messages 2020-05-05 17:02:27 +01:00
Neil Alexander ed1bc9d2ee Take copies of events before passing to destination queues 2020-05-05 16:12:05 +01:00
Neil Alexander 74ed7140f9 Tweaks 2020-05-05 14:59:43 +01:00
Neil Alexander c71bcb2cdf Tweaks 2020-05-05 14:37:06 +01:00
Neil Alexander 93eb8163a1 Tweaks 2020-05-05 14:13:28 +01:00
Neil Alexander c4ee20c95e Improve federation sender performance and behaviour, add backoff 2020-05-05 13:20:48 +01:00
Neil Alexander 3a858afca2
Loopback event from invite response (#982)
* Working invite v2 support

* Fix copyright notice

* Update gomatrixserverlib

* Add fallthrough

* Add missing continue

* Update sytest-whitelist, gomatrixserverlib

* Update gomatrixserverlib to test matrix-org/gomatrixserverlib#181

* Update gomatrixserverlib
2020-04-28 10:53:07 +01:00
Neil Alexander 067b875063
Invites v2 endpoint (#952)
* Start converting v1 invite endpoint to v2

* Update gomatrixserverlib

* Early federationsender code for sending invites

* Sending invites sorta happens now

* Populate invite request with stripped state

* Remodel a bit, don't reflect received invites

* Handle invite_room_state

* Handle room versions a bit better

* Update gomatrixserverlib

* Tweak order in destinationQueue.next

* Revert check in processMessage

* Tweak federation sender destination queue code a bit

* Add comments
2020-04-03 14:29:06 +01:00
Neil Alexander 05e1ae8745
Further room version wiring (#936)
* Room version 2 by default, other wiring updates, update gomatrixserverlib

* Fix nil pointer exception

* Fix some more nil pointer exceptions hopefully

* Update gomatrixserverlib

* Send all room versions when joining, not just stable ones

* Remove room version cquery

* Get room version when getting events from the roomserver database

* Reset default back to room version 2

* Don't generate event IDs unless needed

* Revert "Remove room version cquery"

This reverts commit a170d58733.

* Query room version in federation API, client API as needed

* Improvements to make_join send_join dance

* Make room server producers use headered events

* Lint tweaks

* Update gomatrixserverlib

* Versioned SendJoin

* Query room version in syncapi backfill

* Handle transaction marshalling/unmarshalling within Dendrite

* Sorta fix federation (kinda)

* whoops commit federation API too

* Use NewEventFromTrustedJSON when getting events from the database

* Update gomatrixserverlib

* Strip headers on federationapi endpoints

* Fix bug in clientapi profile room version query

* Update gomatrixserverlib

* Return more useful error if room version query doesn't find the room

* Update gomatrixserverlib

* Update gomatrixserverlib

* Maybe fix federation

* Fix formatting directive

* Update sytest whitelist and blacklist

* Temporarily disable room versions 3 and 4 until gmsl is fixed

* Fix count of EDUs in logging

* Update gomatrixserverlib

* Update gomatrixserverlib

* Update gomatrixserverlib

* Rely on EventBuilder in gmsl to generate the event IDs for us

* Some review comments fixed

* Move function out of common and into gmsl

* Comment in federationsender destinationqueue

* Update gomatrixserverlib
2020-03-27 16:28:22 +00:00
Neil Alexander 6460b3725d
Make sure PDUs and EDUs in transaction don't marshal to null (#876) 2020-02-28 14:54:51 +00:00
Andrew Morgan 1eb77b8161
Don't print Sending EDU if there is noone to send to (#721)
The logs had a lot of:

```
Sending EDU event                             destinations="[]" edu_type=m.typing
```

Which is useless if it isn't actually sending the event anywhere (destinations is empty).
2019-07-01 16:04:49 +01:00
ruben 74827428bd use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00