~mysql/myconnpy/1.0

Viewing all changes in revision 372.

  • Committer: Geert Vanderkelen
  • Date: 2013-01-31 08:46:45 UTC
  • Revision ID: geert.vanderkelen@oracle.com-20130131084645-gc6vkbbg16qxc6jc
BUG#16209119: Fix IPv6 support for older MS Windows version

Fixed IPv6 for older MS Windows versions, but also improved
the code for any operating system. We now use
socket.getaddrinfo() instead of inet_pton() to check whether
we are connecting using IPv4 or IPv6.

A new connection option 'force_ipv6' has been introduced. When
set to True, IPv6 will be used when an address resolves to
both IPv4 and IPv6. Otherwise, IPv4 is favored.

A few test cases have been updated. Some test that fail on
older version of Windows, for example Windows XP, have
been disabled.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: