From d95f3dc0b117b0677700dae8dd51145c9b6f2d08 Mon Sep 17 00:00:00 2001 From: Rick Deist Date: Sat, 17 Mar 2018 20:10:04 +0100 Subject: resolve: add CURLOPT_DNS_SHUFFLE_ADDRESSES This patch adds CURLOPT_DNS_SHUFFLE_ADDRESSES to explicitly request shuffling of IP addresses returned for a hostname when there is more than one. This is useful when the application knows that a round robin approach is appropriate and is willing to accept the consequences of potentially discarding some preference order returned by the system's implementation. Closes #1694 --- tests/data/Makefile.inc | 1 + tests/data/test1608 | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/data/test1608 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index ca0c7edd1..2f5721318 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -177,6 +177,7 @@ test1533 test1534 test1535 test1536 test1537 test1538 \ test1540 \ test1550 test1551 test1552 test1553 test1554 test1555 test1556 \ test1600 test1601 test1602 test1603 test1604 test1605 test1606 test1607 \ +test1608 \ \ test1700 test1701 test1702 \ \ diff --git a/tests/data/test1608 b/tests/data/test1608 new file mode 100644 index 000000000..702310757 --- /dev/null +++ b/tests/data/test1608 @@ -0,0 +1,26 @@ + + + +unittest +curlopt_dns_shuffle_addresses + + + +# +# Client-side + + +none + + +unittest + + +verify DNS shuffling + + +unit1608 + + + + -- cgit v1.2.3