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:
None 
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

[16 Oct 2012 7:41] Tardi Sndor
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.
[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.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.