Skip to content

Conversation

bb107
Copy link

@bb107 bb107 commented May 9, 2024

When server is specified as the host name, if the LAN host has both IPv4 and IPv6 addresses and the IPv6 address is located in the first address returned by Dns.GetHostAddresses(), the socket will not be connected. Because the TcpClient was created using the IPv4 address family, but the socket re-resolved the hostname and got an IPv6 address.

Snipaste_2024-05-09_14-55-29
Snipaste_2024-05-09_15-15-06

Fix: None of the discovered or specified addresses match the socket address family.
@mysql-oca-bot
Copy link

Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at https://oca.opensource.oracle.com/
Please make sure to include your MySQL bug system user (email) in the returned form.
Thanks

@bb107
Copy link
Author

bb107 commented May 9, 2024

Hello, I just signed the OCA and my username is microboring107@gmail.com.

@bb107 bb107 closed this May 15, 2024
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.

2 participants