Commit Graph

337 Commits (084afbb6a06f2661bed503bf49b0291ce999c6c1)

Author SHA1 Message Date
Paul "LeoNerd" Evans e1a7e3564f Delete a couple of TODO markers of monitoring stats now done 10 years ago
Paul "LeoNerd" Evans 027fd1242c Give LruCache a __len__, so that len(cache) works 10 years ago
Erik Johnston 3077cb2915 Use contextlib.contextmanager instead of a custom class 10 years ago
Erik Johnston 0554d07082 Move federation rate limiting out of transport layer 10 years ago
Erik Johnston cc3d3babb0 Remove unused import 10 years ago
Erik Johnston 36e144091b Remove spurious comma. Remove temp run_on_reactor 10 years ago
Erik Johnston b17bd31da0 Temporarily add a run_on_reactor() call 10 years ago
Erik Johnston 859fbd4423 s/self._clock/self.clock/ 10 years ago
Erik Johnston 4fd176a41d More docs 10 years ago
Erik Johnston d77912ff44 Docs. 10 years ago
Erik Johnston 9371019133 Try to only back off if we think we failed to connect to the remote 10 years ago
Erik Johnston c8436b38a0 Only update destination_retry_timings if we have succeeded when retrying 10 years ago
Erik Johnston f91263b1e0 Remove spurious self 10 years ago
Erik Johnston 2b8f1a956c Add per server retry limiting. 10 years ago
Erik Johnston 964bb43fbe Fix typo in function name 10 years ago
Erik Johnston e7e20417ca ExpiringCache: purge every 1/2 interval 10 years ago
Erik Johnston 472734a8cc Consume errors in time_bound_deferred 10 years ago
Erik Johnston 2674aeb96a Factor out ExpiringCache from StateHandler 10 years ago
Erik Johnston ef276e8770 Fix so timing out connections to actually work. 10 years ago
Erik Johnston ddb816cf60 Don't unfreeze when using FreezeEvent.get_dict, as we are using a JSONEncoder that understands FrozenDict 10 years ago
Mark Haines d8324d5a2b Add a lru cache class 10 years ago
Erik Johnston dcf52469e8 Move time_bound_deferred into Clock 10 years ago
Erik Johnston 0e6b3e4e40 Time out HTTP federation requests 10 years ago
Erik Johnston ef995e6946 Add looping_call to Clock 10 years ago
Erik Johnston b4886264a3 Bugfix cache layer 10 years ago
Erik Johnston c4e3029d55 Add cache layer to state group resolution 10 years ago
Erik Johnston dfa05f0cd6 Optimize FrozenEvent creation 10 years ago
Erik Johnston d5ae67e67d Fix typo where we used wrong var. 10 years ago
Erik Johnston 03a501456c Time how long calls to _get_destination_retry_timings take 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Mark Haines 041ac476a5 Supply auth_chain along with current state in '/state/', fetch auth events from a remote server if we are missing some of them 10 years ago
Mark Haines dbe77ec79a Replace distributor deferred list, with a simple for loop until I understand why the former breaks and the latter doesn't 10 years ago
Erik Johnston 5a465b67ba Fix pyflakes 10 years ago
Erik Johnston 58168498b0 Remove FrozenEncoder 10 years ago
Erik Johnston bc6564bac0 Add PEP8 newlines 10 years ago
Erik Johnston 721482c83e Add forgotten file 10 years ago
Mark Haines 15099fade5 Drop log level for incorrect logging contexts to WARN if the context is wrong and DEBUG if the context is missing 10 years ago
Mark Haines db9ce032a4 Fix pep8 codestyle warnings 10 years ago
Mark Haines dfdda2c871 Use module loggers rather than the root logger. Exceptions caused by bad clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str' 10 years ago
Mark Haines 32090aee16 Add a few missing yields, Move deferred lists inside PreserveLoggingContext because they don't interact well with the logging contexts 10 years ago
Mark Haines ca91bb2f7f Sometimes there isn't a current logging context 10 years ago
Mark Haines 97c7c34f6f Preserve logging context in a few more places, drop the logging context after it has been stashed to reduce potential for confusion 10 years ago
Erik Johnston 4317c8e583 Implement new replace_state and changed prev_state 10 years ago
Mark Haines 7d709542ca Fix pep8 warnings 10 years ago
Mark Haines fa955cc2a4 Pep8 and a few doc strings 10 years ago
Mark Haines b29517bd01 Add a request-id to each log line 10 years ago
Erik Johnston 53216a500d Add a run_on_reactor function 10 years ago
Kegan Dougal cc83b06cd1 Added support for the HS to send emails. Use it to send password resets. Added email_smtp_server and email_from_address config args. Added emailutils. 10 years ago
Matthew Hodgson 8a7c1d6a00 fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch. 10 years ago
Paul "LeoNerd" Evans 967b45bc1a Allow optional non-suppression of exceptions through the Distributor 10 years ago