Skip to content
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

GRPC.Stub.connect doesn't work with an IPV6-only address #361

Open
mwcampbell opened this issue Apr 29, 2024 · 2 comments
Open

GRPC.Stub.connect doesn't work with an IPV6-only address #361

mwcampbell opened this issue Apr 29, 2024 · 2 comments

Comments

@mwcampbell
Copy link

With grpc 0.8.1, if I pass an IPv6-only hostname to GRPC.Stub.connect, I get a timeout error. I know that the server is responding immediately to connections from other clients, so it looks like GRPC.Stub doesn't support IPv6.

@v0idpwn
Copy link
Contributor

v0idpwn commented May 3, 2024

Does the alternative function where you can pass host and port separately works?
I think the current logic that splits host/port from an address isn't capable of handling ipv6 addresses. But if you can't call connect(host, port, opts), the problem is worse because it means there are problems in other parts of the library too

@mwcampbell
Copy link
Author

Unfortunately, that didn't work either.

To solve this, I switched to the Mint adapter, then added the following adapter options:

adapter_opts: [transport_opts: [inet6: true]]

In my testing so far, this works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants