-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In version 6.X, state is lost after an exception is thrown #123
Comments
Hi Taritsyn! 6.1.0 includes a new feature, process retries:
This was added to deal with "established connection was aborted" issues. In these issues the .Net process stops being able to communicate with the existing Node.js process. The new feature works around these issues by retrying in a new process, hence the loss of state. One solution would be to set Disabling the feature would leave applications vulnerable to "aborted connection" issues though. I think I'll change the default behavior of process retries so they only occur on connection issues, not on JS errors. This would deal with "aborted" issues without messing up state on JS errors. Will add a flag for users who want process retries on JS errors too. Let me know if you have any suggestions! |
Hello, Jeremy!
Yes, this setting solved my problem.
This would be perfect solution.
In my case, it would be nice if this flag was set to |
I've released 6.2.0 with the flag. Defaults to false. Let me know if you have any other issues :). |
Thank you very much! |
Hello, Jeremy!
After upgrading from version 5.4.4 to 6.1.0, some my tests began to fail. Upon a detailed research, it turned out that after any errors occur in JavaScript code, state is lost.
To reproduce this error, I wrote a console application:
When using version 5.4.4, state after the error occurs is preserved:
When using version 6.1.0, state after the error occurs is lost:
The text was updated successfully, but these errors were encountered: