cURL / Mailing Lists / curl-library / Single Mail

curl-library

gettimeofday() and connect.c

From: Yang Tse <yangsita_at_gmail.com>
Date: Sat, 21 Apr 2007 19:09:22 +0200

Hi Robert,

Here's another patch that also avoids another gettimeofday call.

It avoids one gettimeofday call for each conexion that is established
after using Curl_setopt with any of CURLOPT_CONNECTTIMEOUT,
CURLOPT_CONNECTTIMEOUT_MS, CURLOPT_TIMEOUT or CURLOPT_TIMEOUT_MS.

If the cases you're profiling uses them, it would be nice to know the
impact of applying the patch.

Thanks,

-- 
-=[Yang]=-

Received on 2007-04-21