]> granicus.if.org Git - curl/commit
resolve: add CURLOPT_DNS_SHUFFLE_ADDRESSES
authorRick Deist <dreckard@users.noreply.github.com>
Sat, 17 Mar 2018 19:10:04 +0000 (20:10 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 17 Mar 2018 19:44:14 +0000 (20:44 +0100)
commitd95f3dc0b117b0677700dae8dd51145c9b6f2d08
treef1f044908f412bc3a946f61fa611884c0ff1611b
parentfb4f568b1e090c884eb63c3419322b558a38138e
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
14 files changed:
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_DNS_SHUFFLE_ADDRESSES.3 [new file with mode: 0644]
docs/libcurl/opts/Makefile.inc
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/hostip.c
lib/hostip.h
lib/setopt.c
lib/urldata.h
packages/OS400/curl.inc.in
tests/data/Makefile.inc
tests/data/test1608 [new file with mode: 0644]
tests/unit/Makefile.inc
tests/unit/unit1608.c [new file with mode: 0644]