-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Bug: When WatchStaticMappings=true throws exceptions on updating the mapping files #289
Labels
Comments
I noticed this also in another scenario. I will check the code... |
Should be solved in next preview version at MyGet... |
@muzammilkm Can you verify if this works? |
Verified. |
Next week Wednesday. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When WatchStaticMappings = true in settings throws exceptions & application abnormally gets aborted on updating the mapping files while Mock Server is running.
Exception:
This happens due to editor lock duration while writing to disk(saving). I tried capturing the duration for various editors
VS Code: ~400 ms - ~100 ms
Sublime: ~250ms - ~100 ms
Notepad: ~50ms - ~10ms.
Finding the lock duration & work around for this issue, added in WireMock.Net\Server\FluentMockServer.Admin.cs in ReadStaticMappingAndAddOrUpdate method at line 215:
Refer for IsFileLocked
Avoiding File Concurrency when using System.IO.FileSystemWatcher
The text was updated successfully, but these errors were encountered: