Files
danbooru/test/unit
evazion e935f01358 uploads: fix temp files not being cleaned up quickly enough.
Fix temp files generated during the upload process not being cleaned up quickly enough. This included
downloaded files, generated preview images, and Ugoira video conversions.

Before we relied on `Tempfile` cleaning up files automatically. But this only happened when the
Tempfile object was garbage collected, which could take a long time. In the meantime we could have
hundreds of megabytes of temp files hanging around.

The fix is to explicitly close temp files when we're done with them. But the standard `Tempfile`
class doesn't immediately delete the file when it's closed. So we also have to introduce a
Danbooru::Tempfile wrapper that deletes the tempfile as soon as it's closed.
2022-11-15 18:50:50 -06:00
..
2022-09-18 05:02:10 -05:00
2020-06-20 00:20:39 -05:00
2022-09-18 05:02:10 -05:00
2021-01-11 05:12:09 -06:00
2022-09-18 05:02:10 -05:00
2022-09-18 05:02:10 -05:00
2022-10-11 15:45:47 -05:00
2022-05-20 22:51:02 -05:00