-
Notifications
You must be signed in to change notification settings - Fork 822
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
Attempting to open a TCP port in use not being blocked #2915
Comments
@jbalsip - good catch! It's the You should not see this behavior with other TCP applications if this socket option doesn't come into play. |
Looks like Cygwin suffers from the same problem, for the same reasons. This can be done in a backward compatible way that does not disturb Win32, but you already know that. I feel your pain 😢. |
I ran into this issue using Start an acceptor on 0.0.0.0 and a port and it works fine. |
Indeed. Concrete solution proposed would be to have win32 |
I've run into the same issue with SO_REUSEADDR, although admittedly in a toy project which can be worked around locally... |
Is this something that's known to be fixed in 1809? I'm now getting the desired 'address in use' error on one machine running 1809, and am still seeing the listen incorrectly succeed on another machine running 1803. |
@Conduitry my Surface Pro is running 1809 and is still affected, so that's a negative I would say. But it is running the insider's build so I don't know if that makes a difference or not. The official 1809 has yet to hit my desktop. |
Green 'Open' indicator at the top. The issue is not resolved. |
I also encountered this problem. |
Any update on this? I want to turn off this 'feature' :) |
Windows Version: Microsoft Windows [Version 10.0.16299.192]
While running within the Ubuntu shell, I startup a simple node app like the following:
Within a second Ubuntu shell I attempt to startup the same app. The expected behavior within the second app is that the console output should throw an error similar to this:
What actually happens is the second bash shell runs the app without any error. This is completely inconsistent with how I would expect.
Curiously enough, if I run the app within the Ubuntu shell, and then attempt to run the same app within a regular Windows command shell, then I do get the error as I expect.
I only observed this behavior with testing node apps, but I do wonder if it isn't just limited to node or if other programs using TCP exhibit a similar behavior.
The text was updated successfully, but these errors were encountered: