forked-synapse/synapse
14mRh4X0r 8942e23a69
Always update AS last_pos, even on no events (#10107)
Fixes #1834.

`get_new_events_for_appservice` internally calls `get_events_as_list`, which will filter out any rejected events. If all returned events are filtered out, `_notify_interested_services` will return without updating the last handled stream position. If there are 100 consecutive such events, processing will halt altogether.

Breaking the loop is now done by checking whether we're up-to-date with `current_max` in the loop condition, instead of relying on an empty `events` list.


Signed-off-by: Willem Mulder <14mRh4X0r@gmail.com>
2021-06-07 15:42:05 +01:00
..
_scripts Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
api Set opentracing priority before setting other tags (#10092) 2021-05-28 16:14:08 +01:00
app Move some more endpoints off master (#10084) 2021-05-27 22:45:43 +01:00
appservice Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
config Remove redundant code to reload tls cert (#10054) 2021-05-27 10:34:24 +01:00
crypto Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
events Add missing type hints to handlers and fix a Spam Checker type hint. (#9896) 2021-04-29 07:17:28 -04:00
federation Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
groups Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
handlers Always update AS last_pos, even on no events (#10107) 2021-06-07 15:42:05 +01:00
http Merge branch 'master' into develop 2021-06-01 13:47:27 +01:00
logging Enable Prometheus metrics for the jaeger client library (#10112) 2021-06-04 09:25:33 +01:00
metrics Set opentracing priority before setting other tags (#10092) 2021-05-28 16:14:08 +01:00
module_api Use a database table to hold the users that should have full presence sent to them, instead of something in-memory (#9823) 2021-05-18 14:13:45 +01:00
push Split multiplart email sending into a dedicated handler (#9977) 2021-05-17 12:33:38 +02:00
replication Combine LruCache.invalidate and invalidate_many (#9973) 2021-05-27 10:33:56 +01:00
res/templates Port "Allow users to click account renewal links multiple times without hitting an 'Invalid Token' page #74" from synapse-dinsic (#9832) 2021-04-19 19:16:34 +01:00
rest Add missing type hints to the admin API servlets (#10105) 2021-06-07 15:12:34 +01:00
server_notices Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Use get_current_users_in_room from store and not StateHandler (#9910) 2021-05-05 16:49:34 +01:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Add OpenTracing for database activity. (#10113) 2021-06-03 16:31:56 +01:00
streams Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
util Fix up BatchingQueue (#10078) 2021-05-27 14:32:31 +01:00
__init__.py 1.35.1 2021-06-03 08:18:22 -04:00
event_auth.py Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00
notifier.py Improve opentracing annotations for Notifier (#10111) 2021-06-03 16:01:30 +01:00
python_dependencies.py Use ijson to parse the response to /send_join, reducing memory usage. (#9958) 2021-05-20 16:11:48 +01:00
server.py Split multiplart email sending into a dedicated handler (#9977) 2021-05-17 12:33:38 +02:00
types.py Make DomainSpecificString an attrs class (#9875) 2021-04-23 15:46:29 +01:00
visibility.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00