You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have an MVEL expression that is causing an infinite loop. Is there any API in the MVEL library that allows me to set a timeout for executing the expression?
Let's say I have an MVEL expression that is causing an infinite loop. Is there any API in the MVEL library that allows me to set a timeout for executing the expression?
Sample expression:-
Serializable compiled = MVEL.compileExpression("while(true)\n" + "System.out.println(\"Hello\");");
Map<String, Object> vars = Collections.singletonMap("a", (Object) Collections.emptyMap());
MVEL.executeExpression(compiled, vars);
This will keep on executing.
The text was updated successfully, but these errors were encountered: