-
Notifications
You must be signed in to change notification settings - Fork 69
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
Connection timed out on OS that doesn't support binding to IPv6 addresses. #193
Comments
Sserra90
pushed a commit
to Sserra90/dart_custom_lint
that referenced
this issue
Oct 9, 2023
I had this problem running it inside a linux host on a docker container, the only solution was to fork and apply this patch. It now works both locally and on the CI |
That's an interesting idea. |
Merged
oskar-zeinomahmalat-sonarsource
pushed a commit
to oskar-zeinomahmalat-sonarsource/dart_custom_lint
that referenced
this issue
Dec 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to use it inside a linux box that doesn't support IPv6 stack.
From what I can find,
dart_custom_lint/packages/custom_lint_builder/lib/src/channel.dart
Line 67 in c8b0ef8
This fails when server is using a IPv4 socket.
No idea how rest of the system is structured or how
Socket.connect(InternetAddress.loopbackIPv6
is implemented but in general, I'd use IPv4 everywhere. If v6 required, I'd first check whether server supports it, then use with v6_only=false (if I can afford dual stack sockets but not multiple ports), else with v6_only=true (even when =false is supported) and create two sockets (for peace of mind), and then propagate that information to every relavant parts including clients so they can connect according to their capabilities, without running into repeated timeouts.Quick way would be to pass host to clients so they don't have to guess it:
This works for me. Probably related to #115.
The text was updated successfully, but these errors were encountered: