From: Daniel Stenberg Date: Mon, 10 Apr 2006 21:49:55 +0000 (+0000) Subject: Ates Goral found out that if you specified both CURLOPT_CONNECTTIMEOUT and X-Git-Tag: curl-7_15_4~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=676597e9618970e7e2dfdfe440b09c3aee625576;p=curl Ates Goral found out that if you specified both CURLOPT_CONNECTTIMEOUT and CURLOPT_TIMEOUT, the _longer_ time would wrongly be used for the SSL connection time-out! --- diff --git a/lib/ssluse.c b/lib/ssluse.c index 60d174fd1..4a67b1124 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -1332,7 +1332,7 @@ Curl_ossl_connect_step2(struct connectdata *conn, /* get the most strict timeout of the ones converted to milliseconds */ if(data->set.timeout && - (data->set.timeout>data->set.connecttimeout)) + (data->set.timeoutset.connecttimeout)) *timeout_ms = data->set.timeout*1000; else *timeout_ms = data->set.connecttimeout*1000;