forked-synapse/synapse
Erik Johnston 98c8fc6ce8
Handle federation inbound instances being killed more gracefully (#11262)
* Make lock better handle process being killed

If the process gets killed and restarted (so that it didn't have a
chance to drop its locks gracefully) then there may still be locks in
the DB that are for the same instance that haven't yet timed out but are
safe to delete.

We handle this case by a) checking if the current instance already has
taken out the lock, and b) if not then ignoring locks that are for the
same instance.

* Periodically check for old staged events

This is to protect against other instances dying and their locks timing
out.
2021-11-08 09:54:47 +00:00
..
_scripts Fixed config parse bug in review_recent_signups (#11191) 2021-10-27 17:25:18 +01:00
api Make check_event_allowed module API callback not fail open (accept events) when an exception is raised (#11033) 2021-11-01 15:45:56 +00:00
app Support for serving server well-known files (#11211) 2021-11-01 15:10:16 +00:00
appservice Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
config Enable passing typing stream writers as a list. (#11237) 2021-11-03 14:25:47 +00:00
crypto Fetch verify key locally rather than trying to do so over federation if origin and host are the same. (#11129) 2021-10-28 10:27:17 -07:00
events Add remaining type hints to synapse.events. (#11098) 2021-11-02 09:55:52 -04:00
federation Handle federation inbound instances being killed more gracefully (#11262) 2021-11-08 09:54:47 +00:00
groups Use direct references for configuration variables (part 4). (#10893) 2021-09-23 12:03:01 -04:00
handlers Make minor correction to type of auth_checkers callbacks (#11253) 2021-11-04 17:10:11 +00:00
http Type hints for the remaining two files in synapse.http. (#11164) 2021-10-28 14:14:42 +01:00
logging Type hints for the remaining two files in synapse.http. (#11164) 2021-10-28 14:14:42 +01:00
metrics Add metrics to the threadpools (#11178) 2021-11-01 11:21:36 +00:00
module_api Add a module API method to retrieve state from a room (#11204) 2021-10-29 16:28:29 +00:00
push Add remaining type hints to synapse.events. (#11098) 2021-11-02 09:55:52 -04:00
replication Enable passing typing stream writers as a list. (#11237) 2021-11-03 14:25:47 +00:00
res Allow configuration of the oEmbed URLs. (#10714) 2021-08-31 18:37:07 -04:00
rest Enable passing typing stream writers as a list. (#11237) 2021-11-03 14:25:47 +00:00
server_notices disallow-untyped-defs for synapse.server_notices (#11021) 2021-10-07 19:55:15 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Add remaining type hints to synapse.events. (#11098) 2021-11-02 09:55:52 -04:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Handle federation inbound instances being killed more gracefully (#11262) 2021-11-08 09:54:47 +00:00
streams Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
util ObservableDeferred: run observers in order (#11229) 2021-11-02 00:17:35 +00:00
__init__.py 1.46.0 2021-11-02 13:23:01 +00:00
event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
notifier.py Fix providing a RoomStreamToken instance to _notify_app_services_ephemeral (#11137) 2021-11-02 10:39:02 +00:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
python_dependencies.py Validate new m.room.power_levels events (#10232) 2021-08-26 17:07:58 +01:00
server.py Enable passing typing stream writers as a list. (#11237) 2021-11-03 14:25:47 +00:00
types.py Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
visibility.py [pyupgrade] synapse/ (#10348) 2021-07-19 15:28:05 +01:00