mariadb/sql-common
Davi Arnaut 543e86728f Bug#45017: Failure to connect if hostname maps to multiple addresses
The problem is that the C API function mysql_real_connect
only attempts to connect to the first IP address returned
for a hostname. This can be a problem if a hostname maps
to multiple IP address and the server is not bound to the
first one that is returned.

The solution is to augment mysql_real_connect so that it
attempts to connect to all IPv4 addresses that a domain
name maps to. The function goes over the list of address
until a successful connection is established.

No test case is provided as its not possible to test this
automatically with the current testing infrastructure.

sql-common/client.c:
  The client will try to connect to each IPv4 address from
  the list of addresses that hostname maps to until a successful
  connection is established or there are no more address.
2009-07-30 21:28:43 -03:00
..
client.c Bug#45017: Failure to connect if hostname maps to multiple addresses 2009-07-30 21:28:43 -03:00
Makefile.am my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_time.c Bug#42146 - DATETIME fractional seconds parse error 2009-02-13 19:07:03 +01:00
my_user.c Bug#29125 Windows Server X64: so many compiler warnings 2009-02-13 11:41:47 -05:00
pack.c Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00