-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
remote / listen tubes disagree on default IP stack for localhost #1552
Comments
Maybe it should just listen on both? |
We might be able to do that, but it would require lots of work since it's not possible to listen on both with the same socket object |
Apparently it might be possible: https://stackoverflow.com/a/1618259/3869724 |
It looks like that isn't portable from Linux, e.g. all BSD and macOS by extension don't have that. We can probably do some tricks with a separate listener thread but it'll be a big refactor. We should probably just ensure that in doctests we set the correct |
Also a minor cleanup in sock.py. Tested on Linux and FreeBSD. Closes Gallopsled#1552
Also a minor cleanup in sock.py. Tested on Linux and FreeBSD. Closes #1552
I ran across this while trying to test the UDP stack of
tubes
, thelisten()
binds to IPv4, butremote()
attempts::1
forlocalhost
.This is probably not a real issue, but I could see it causing issues for people trying to connect to
localhost
for some challenge that sets up a server. For TCP we try each interface, but since UDP has no connection handshake, there is no way to detect failure.Not sure how to / if we can solve this.
The text was updated successfully, but these errors were encountered: