-
Notifications
You must be signed in to change notification settings - Fork 13
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
File locking when recycling pool #10
Comments
I wonder if JSPool should avoid recycling the pool of JavaScript engines until none of the watched files are locked. Currently it debounces the recycle to handle the case where there's a few changes to the same file in a short period of time. The delay could be increased (currently it's 25ms) which would work around this issue, it's a pretty hacky fix though. |
From what i can tell out of the blue i started getting this same error. Just updated to latest version and the bug persists. Any solution or tips? |
In my case I have a 4MB script (I don't know if size makes a difference) that results in the Initializer() function being called 3 times as it is being written to. The 1st time fails at reading my file, but the 2nd and 3rd times succeed. So at least in my case it seems that the 25ms debounce timeout was not enough. |
You could try increasing that timeout, building your own build of JSPool, and seeing whether that helps. |
Reported by @gregbty at reactjs/React.NET#181:
The text was updated successfully, but these errors were encountered: