dangerzone/dangerzone
Alex Pyrgiotis f57d2f7191
isolation_provider: Always terminate spawned process
Previously, we always assumed that the spawned process would quit
within 3 seconds. This was an arbitrary call, and did not work in
practice.

We can improve our standing here by doing the following:

1. Make `Popen.wait()` calls take a generous amount of time (since they
   are usually on the sad path), and handle any timeout errors that they
   throw. This way, a slow conversion process cleanup does not take too
   much of our users time, nor is it reported as an error.
2. Always make sure that once the conversion of doc to pixels is over,
   the corresponding process will finish within a reasonable amount of
   time as well.

Fixes #749
2024-04-24 14:39:15 +03:00
..
conversion conversion: Do not let PyMuPDF print to stdout 2024-03-13 21:03:15 +02:00
gui Properly add new file extensions 2024-02-20 16:02:38 +02:00
isolation_provider isolation_provider: Always terminate spawned process 2024-04-24 14:39:15 +03:00
__init__.py Remove separate dangerzone-container entry point, make CLI work with it, and refactor container code to be more DRY 2021-08-04 16:21:00 -07:00
args.py Update typing hints for Mypy 1.1.1 2023-03-27 15:19:43 +03:00
cli.py Remove timeouts 2024-02-06 20:11:43 +00:00
document.py Sanitize filenames before logging them 2023-08-01 14:43:48 +03:00
errors.py Prevent adding duplicate documents 2022-11-30 12:49:18 +00:00
logic.py Add logic to handle documents removal 2023-07-25 15:00:12 +01:00
settings.py Move settings.json into constant 2024-04-01 18:18:41 +03:00
util.py Revert "Add Stopwatch implementation" 2024-02-06 19:42:42 +00:00