cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Timer left at 0 and firing over and over. Regression after 7.32.0

From: Damian Lezama <Damian.Lezama_at_riverbed.com>
Date: Mon, 24 Mar 2014 18:13:33 +0000

> Once the timeout expires, you call libcurl and that's it. That was the timeout
> and it should not be called again. You shouldn't assume that libcurl will tell
> you anything about it more than so.
>
> If there's another timeout to deal with, then libcurl will tell you again with an
> updated and new timeout value.

[Damian] Then I misunderstood how libcurl was supposed to work. Let me see
if I got it right this time: On a timeout callback I will program/reprogram/stop my
timer and then forget about it. I don't even need to internally store the value.
 
> That's not how it works though!

[Damian] Yup, thanks a lot for the help. I think my interpretation of the doc was
libcurl telling me "this is the timeout value to use" in the callback, and it seems
to work more like "please program this timer"

Damian

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-24