mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
![]() Convert the Dangerzone script that in the container to run commands asynchronously, via the asyncio module. The main advantage of this approach is that it's fast, easy, and safe to consume the command's streams, while the command is running in the background. Previously, we had implemented an approach that used non-blocking sockets, but those are easy to get wrong. For instance, timeouts were not exact, capturing output was brittle. Fixes #325 |
||
---|---|---|
.. | ||
dangerzone.py | ||
Dockerfile |