diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2018-02-21 15:16:50 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2018-02-21 15:16:50 -0500 |
commit | dd027c80fe444e9555ad324ddf8e461eb358f4a3 (patch) | |
tree | 020e87f6355c39692ea304f49e3c139d5c842b2c /lib | |
parent | de97b5fcefb110f3f34338b8292652340ddb1f63 (diff) |
lib: CURLOPT_HAPPY_EYEBALLS_TIMEOUT => CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS
- In keeping with the naming of our other connect timeout options rename
CURLOPT_HAPPY_EYEBALLS_TIMEOUT to CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.
This change adds the _MS suffix since the option expects milliseconds.
This is more intuitive for our users since other connect timeout options
that expect milliseconds use _MS such as CURLOPT_TIMEOUT_MS,
CURLOPT_CONNECTTIMEOUT_MS, CURLOPT_ACCEPTTIMEOUT_MS.
The tool option already uses an -ms suffix, --happy-eyeballs-timeout-ms.
Follow-up to 2427d94 which added the lib and tool option yesterday.
Ref: https://github.com/curl/curl/pull/2260
Diffstat (limited to 'lib')
-rw-r--r-- | lib/setopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setopt.c b/lib/setopt.c index f03e6d5fa..8dcd10e6b 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -2533,7 +2533,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, case CURLOPT_SSH_COMPRESSION: data->set.ssh_compression = (0 != va_arg(param, long))?TRUE:FALSE; break; - case CURLOPT_HAPPY_EYEBALLS_TIMEOUT: + case CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS: arg = va_arg(param, long); if(arg < 0) return CURLE_BAD_FUNCTION_ARGUMENT; |