bd9f1d2e7c
Allow method handler to decide if operation could be cancelled. If yes, when connection to the qubesd is terminated (and protocol.connection_lost get called) the operation is cancelled using standard asyncio method - in which case asyncio.CancelledError is thrown inside method handler. This needs to be explicitly enabled, because cancellable methods are much harder to write, to maintain consistent system state. Caveat: protocol.connection_lost is called only when trying to send some data to it (and it's already terminated). Which makes this whole mechanism useful only for events. Otherwise, when sending some data (and possibly detecting that connection is broken), the operation is already completed. QubesOS/qubes-issues#2622 |
||
---|---|---|
.. | ||
ext | ||
qmemman | ||
storage | ||
tests | ||
tools | ||
vm | ||
__init__.py | ||
app.py | ||
backup.py | ||
config.py | ||
core2migration.py | ||
devices.py | ||
dochelpers.py | ||
events.py | ||
exc.py | ||
firewall.py | ||
log.py | ||
mgmt.py | ||
mgmtinternal.py | ||
rngdoc.py | ||
tarwriter.py | ||
utils.py |