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

Choose correct local address for targeted IP family #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SeverinLeonhardt
Copy link

To connect to the right shard the driver needs to specify the local port. This is only possible by also choosing an IP address family (v4 or v6).

The code uses IPv4 by default, unless the user configures a different listen address. This means in the default configuration the Scylla driver is unable to connect to IPv6 addresses with a rather surprising "address not available" error.

This commit addresses that surprising behavior by not hard coding a default listen address but instead choosing one based on the IP address family that is being connected to.

To connect to the right shard the driver needs to specify the local
port. This is only possible by also choosing an IP address family (v4 or
v6).

The code uses IPv4 by default, unless the user configures a different
listen address. This means in the default configuration the Scylla
driver is unable to connect to IPv6 addresses with a rather surprising
"address not available" error.

This commit addresses that surprising behavior by not hard coding a
default listen address but instead choosing one based on the IP address
family that is being connected to.
@mykaul
Copy link

mykaul commented Jun 13, 2024

I wonder if it compiles without IPv6 support enabled on the machine, but that should be rate. Otherwise, LGTM.

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

Successfully merging this pull request may close these issues.

None yet

2 participants