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
Unhandled Exception: System.Net.Sockets.SocketException: Address already in use #809
Comments
|
Just adding the link with #771 |
|
@MangelMaxime Oh, I didn't see that issue. I searched for |
|
For the record, it happens even after I see the |
|
@Pauan Yes I have the same problem under linux. Just didn't find the time to investigate it. |
|
I did a bit of digging into this. Found the following comment which explains what's going on here for linux and lists some workarounds. https://github.com/dotnet/corefx/issues/9780#issuecomment-232103001 Looks like to take advantage of SO_REUSEADDR we'd just need to add Fable/src/dotnet/Fable.Tools/Server.fs Lines 67 to 68 in d86c556
I don't have a linux vm handy at the moment to verify though. @Pauan @MangelMaxime can one of you maybe validate? |
|
Thanks a lot for investigating this, @johlrich! Actually, I tried on a mac and had a similar issue. I'll implement your suggestion and release a new version so everybody can easily try it out 👍 |
|
I have published |
|
Oh great thanks @johlrich Edit: @alfonsogarciacaro Sure, I will keep you inform. |
|
@alfonsogarciacaro @johlrich I just tried |
When following the directions from the blog post, if I run
dotnet fable npm-run buildand then as soon as it finishes I rundotnet fable npm-run buildagain, I get this error:Even if I wait for a bit and try again, it keeps giving the same error.
The only way to fix it is to wait for ~15-30 seconds, and then it works again.
The text was updated successfully, but these errors were encountered: