| Bug #67253 | unable to connect trough ipv6 via .net connector 6.6.3 | ||
|---|---|---|---|
| Submitted: | 16 Oct 2012 7:41 | Modified: | 3 Jan 2013 2:23 |
| Reporter: | Tardi Sndor | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / NET | Severity: | S2 (Serious) |
| Version: | 6.6.3 | OS: | Windows (Win7) |
| Assigned to: | Roberto Ezequiel Garcia Ballesteros | CPU Architecture: | Any |
| Tags: | ipv6, MySqlException, UnableToConnectToHost | ||
[17 Oct 2012 19:46]
Tardi Sndor
Same with 6.6.3. It works if those two lines are commented out
[3 Jan 2013 2:23]
John Russell
Added to changelog for 6.4.6: Connection attempts using IPV6 addresses in Connector/Net would fail.

Description: It is impossible to connect to a server trough ipv6. There is condition check in a foreach loop in function GetStreamFromHost of the StreamCreator class (Line 71): if (address.AddressFamily == AddressFamily.InterNetworkV6 && !this.driverVersion.isAtLeast(5, 5, 3)) continue; At this ponint there is no valid driverversion, since the version is queried after connection. How to repeat: Try to connect trough ipv6 Suggested fix: The version struct should have a private default constructor to avoid such problems.