Commit Graph

1678 Commits (399689dcc79e73de1ec6bae8aa18bd83f5618f38)

Author SHA1 Message Date
Erik Johnston 3077cb2915 Use contextlib.contextmanager instead of a custom class 10 years ago
David Baker 769f8b58e8 Rename the room-with-two-people rule to be more compatible if we have actual one to one rooms. 10 years ago
Erik Johnston 29481690c5 If we're yielding don't add errback 10 years ago
Erik Johnston 23d9bd1d74 Process transactions serially. 10 years ago
Erik Johnston 9d9b230501 Make the federation server ratelimiting configurable. 10 years ago
Kegan Dougal cb97ea3ec2 PEP8 10 years ago
Kegan Dougal 377ae369c1 Wrap all of get_app_service_rooms in a txn. 10 years ago
Kegan Dougal b216b36892 JOIN state_events rather than parsing unrecognized_keys to pull out member state_keys 10 years ago
Kegan Dougal 3d73383d18 Modify _simple_select_list to allow an empty WHERE clause. Use it for get_all_rooms and get_all_users. 10 years ago
Kegan Dougal ebc4830666 PR tweaks: set earlier on and use 'as json' for compat 10 years ago
David Baker 2a6dedd7cc It's set_tweak now, not set_sound 10 years ago
Erik Johnston 0554d07082 Move federation rate limiting out of transport layer 10 years ago
Erik Johnston 9dc9118e55 Document FederationRateLimiter 10 years ago
Kegan Dougal 58ff066064 Implement exclusive namespace checks. 10 years ago
Kegan Dougal 40c9896705 Add functions to return whether an AS has exclusively claimed a matching namespace. 10 years ago
Kegan Dougal 16b90764ad Convert expected format for AS regex to include exclusivity. 10 years ago
Kegan Dougal 806a6c886a PEP8 10 years ago
Kegan Dougal 1cc77145d4 Notify appservices of invites mid-poll. 10 years ago
David Baker cfac3b7873 SYN-267 Add a fallback rule as an explicit server default rule and make the default dont-notify so you effectively have a "notify for everything else" switch you can turn on and off. 10 years ago
David Baker 1959088156 Add API for getting/setting enabled-ness of push rules. 10 years ago
Kegan Dougal f0995436e7 Check for membership invite events correctly. 10 years ago
Kegan Dougal dcec7175dc Finish impl to get new events for AS. ASes should now be able to poll /events 10 years ago
Erik Johnston 93d90765c4 Initial implementation of federation server rate limiting 10 years ago
Erik Johnston 59362454dd Must update pending_transactions map before yield'ing 10 years ago
Kegan Dougal 92478e96d6 Finish impl to extract all room IDs an AS may be interested in when polling the event stream. 10 years ago
David Baker 944003021b whitespace 10 years ago
David Baker 94fa334b01 Add enable/disable overlay for push rules (REST API not yet hooked up) 10 years ago
Kegan Dougal 29267cf9d7 PEP8 and pyflakes 10 years ago
Kegan Dougal 978ce87c86 Comment unused variables. 10 years ago
Kegan Dougal 2c79c4dc7f Fix alias query. 10 years ago
Kegan Dougal 2b8ca84296 Add support for extracting matching room_ids and room_aliases for a given AS. 10 years ago
Kegan Dougal 2d20466f9a Add stub functions and work out execution flow to implement AS event stream polling. 10 years ago
David Baker a025055643 SYWEB-278 Don't allow rules with no rule_id. 10 years ago
David Baker 255f989c7b turns uris config options should append since it's a list 10 years ago
David Baker 443ba4eecc %s for strings otherwise you end up sending 'u"foo"' 10 years ago
Paul "LeoNerd" Evans 9640510de2 Use OrderedDict for @cached backing store, so we can evict the oldest key unbiased 10 years ago
Paul "LeoNerd" Evans f53fcbce97 Use cache.pop() instead of a separate membership test + del [] 10 years ago
Mark Haines 27080698e7 Fix code style warning 10 years ago
Mark Haines 74048bdd41 Remove unused import 10 years ago
Kegan Dougal 28d8614f48 Trailing comma 10 years ago
Paul "LeoNerd" Evans a09e59a698 Pull the _get_event_cache.setdefault() call out of the try block, as it doesn't need to be there and is confusing 10 years ago
Paul "LeoNerd" Evans 044d813ef7 Use the @cached decorator to implement the destination_retry_timings cache 10 years ago
Paul "LeoNerd" Evans 357fba2c24 RoomMemberStore no longer needs a _user_rooms_cache member 10 years ago
Paul "LeoNerd" Evans e76d485e29 Allow @cached-wrapped functions to have a prefill method for setting entries 10 years ago
Kegan Dougal 0696dfd94b Actually treat this as static content, not random Resources. 10 years ago
Kegan Dougal 22399d3d8f Add RegisterFallbackResource to /_matrix/static/client/register 10 years ago
Paul "LeoNerd" Evans 4631b737fd Squash out the now-redundant ApplicationServicesCache object class 10 years ago
Erik Johnston 42b972bccd Revert get_auth_chain changes 10 years ago
Erik Johnston db215b7e00 Implement and use new batched get missing pdu 10 years ago
Erik Johnston a87c56c673 Bump version 10 years ago