Replies: 1 comment
-
I have, unfortunately I could not find a practical way of doing it in Go. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been looking into using GoJa to evaluate simple JS expressions that can be provided by users, and part of that is ensuring that bad inputs can't bring down the entire server process. The ability to interrupt execution after a certain amount of time is great, thanks for that, and the omission of a standard library is also pretty great.
Have you considered how one might set a limit on memory allocation? Currently evaluating an expression like this can cause a Kubernetes pod to be OOM killed:
Beta Was this translation helpful? Give feedback.
All reactions