unoconv / unoserver

MIT License
494 stars 69 forks source link

Introducing timeout and retrying mechanism #119

Open HirotoKagotani opened 1 month ago

HirotoKagotani commented 1 month ago

I am using unoserver/unoconvert with Moodle LMS. (See MDL-75066) Moodle uses unoserver to convert assignment submission files into pdf. Students may submit various types of document files. LibreOffice (soffice.bin) sometimes keeps 100% CPU usage and XMLRPC never finishes depending on input file characteristics and/or some specific conditions.

My proposal is introducing timeout and retrying mechanism for such situation. On detecting timeout, unoserver may kill and restart LibreOffice within a certain limited number of times. On exceeding the number limit, unoserver may return an error.

Thank you and regards,

regebro commented 1 month ago

I think that could be a good feature to have, indeed.