cURL / Mailing Lists / curl-library / Single Mail

curl-library

connect.c patch for progress callback

From: Adrian Michel <adrian_at_amichel.com>
Date: Thu, 7 Jan 2010 06:58:36 -0800

Daniel,

>
> I'm not sure if I should laugh or cry, but I found almost the
> exact same mistake in the connect code as I found in the
> c-ares name resolving and I've attached my take at fixing
> this. Please try it out and let me know how it works! I
> expect this patch to work on earlier libcurl versions as well
> as latest CVS.
>
> This should make the progress callback get called once per
> second even during very slow connect attempts.
>

Thanks for your help.

Unfortunately, I applied the patch and now I get a connection failure error
immediately, even in the case where the unpatched version was able to
connect.

I use the latest released version 7.19.7 with c-ares 1.7.0 (patched) and
openssl 0.9.8l on Windows.

Thanks again.

Adrian

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-07