Commit Graph

91 Commits (ae6ff094941505064aeac48f4b911a45e83e6336)

Author SHA1 Message Date
Erik Johnston 5bc41fe9f8 Move comment into docstring 10 years ago
Erik Johnston 638be5a6b9 Factor out loops into '_discard_if_notified' 10 years ago
Erik Johnston 830d07db82 Also perform paranoia checks in 'on_new_user_event' 10 years ago
Erik Johnston 65f5e4e3e4 Add paranoia checks to make sure that we evict stale NotificationListeners when we are about to process them 10 years ago
Erik Johnston 07d4041709 Fix bug where we didn't inform the NotificataionListeners about new rooms they have been subscribed to. This meant that the listeners didn't clean themselves up fully from all the dicts 10 years ago
Paul "LeoNerd" Evans 128cf2daf7 Appease pep8 10 years ago
Paul "LeoNerd" Evans 89ac1fa8ba Add a counter to track total number of events served by the notifier 10 years ago
Paul "LeoNerd" Evans b0cf867319 Use _ instead of . as a metric namespacing separator, for Prometheus 10 years ago
Paul "LeoNerd" Evans 6d146e15df Put some gauge metrics on the number of notifier listeners, and notified-on objects (users, rooms, appservices) 10 years ago
Paul "LeoNerd" Evans dc4b774f1e Rename rooms_to_listeners to room_to_listeners, for consistency with user_ and appservice_* 10 years ago
Kegan Dougal 1cc77145d4 Notify appservices of invites mid-poll. 10 years ago
Erik Johnston 72a4de2ce6 Use consumeErrors=True on all DeferredLists. 10 years ago
Kegan Dougal 51d63ac329 Glue AS work to general event notifications. Add more exception handling when poking ASes. 10 years ago
Mark Haines e020574d65 Fix Formatting 10 years ago
Mark Haines b19cf6a105 Wait for events if the incremental sync is empty and a timeout is given 10 years ago
Mark Haines dc70d1fef8 Only start the notifier timeout once we've had a chance to check for updates. Otherwise the timeout could fire while we are waiting for the database to return any updates it might have 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Paul "LeoNerd" Evans 0c1deca574 Remember to hook up the typing event stream to the notifier as well 10 years ago
Mark Haines db9ce032a4 Fix pep8 codestyle warnings 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 0d1221155e remove unused import 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
Mark Haines 7d709542ca Fix pep8 warnings 10 years ago
Paul "LeoNerd" Evans beae9acfcc Use floating-point rather than integer division to handle timeouts so that non-zero but sub-second waits don't collapse to zero 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 061e814195 Make sure to print exceptions properly from notifier failures 10 years ago
Paul "LeoNerd" Evans eec67a675f Have EventSource's get_new_events_for_user() API work only on keys within that source, not overall eventstream tokens 10 years ago
Erik Johnston f07f538ac7 When notifying listeners, don't do so in a serial fashion 10 years ago
Erik Johnston 8113eb7c79 Turn of trace_function logging 10 years ago
Erik Johnston eb3094ed31 And more logging. 10 years ago
Erik Johnston 410a74b0f3 If timeout=0, return immediately 10 years ago
Erik Johnston 226025e9ca Comments! 10 years ago
Erik Johnston bfe9faad5a Index sources in a nicer fashion. 10 years ago
Erik Johnston bd16b93e8f Implement presence event source. Change the way the notifier indexes listeners 10 years ago
Erik Johnston 67c5f89244 Enable presence again. Fix up api to match old api. 10 years ago
Erik Johnston 3a2a5b959c WIP: Completely change how event streaming and pagination work. This reflects the change in the underlying storage model. 10 years ago