From afa3baaac259c8ab85e3d44cc29cab76a50cbedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 21 Jan 2024 00:03:57 +0100 Subject: [PATCH] timeouts --- .../decompiler/flash/cli/commands/Export.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/Export.java b/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/Export.java index e228c588f..7265687e7 100644 --- a/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/Export.java +++ b/libsrc/ffdec_cli/src/com/jpexs/decompiler/flash/cli/commands/Export.java @@ -116,6 +116,23 @@ public class Export implements Runnable { ) private int numRetries = 3; + @Option( + names = "--timeout-method", + description = "Decompilation timeout for a single method in AS3 or single action in AS1/2 in seconds" + ) + Integer methodTimeout = null; + + @Option( + names = "--timeout-total", + description = "Total export timeout in seconds" + ) + Integer totalTimeout = null; + + @Option( + names = "--timeout-file", + description = "Export timeout for a single AS3 class in seconds" + ) + Integer fileTimeout = null; @Parameters(index = "0", split = ",",