summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2009-07-30 21:28:43 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2009-07-30 21:28:43 -0300
commit35e5b9b8c9257b16f4f82655a53c021ad72e61d3 (patch)
tree7104e8ab7b3d8c70adacdd42fca824303fda4d10 /tests
parent5f63862f0fd77712c98adb91bf0626a8ad5c6bee (diff)
downloadmariadb-git-35e5b9b8c9257b16f4f82655a53c021ad72e61d3.tar.gz
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.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions