-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsvm: add a timeout and use it to kill the VM
Unfortunately, the only way to stop/kill Otto is via a panic, which makes this code more complicated than it should be. Make the Timeout be 5 seconds for now. It's high enough that no sane middleware would hit it, but low enough to not let goroutine leaks build up easily. Fixes #496.
- Loading branch information
Showing
2 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters