]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLMOPT_TIMERFUNCTION.3: call it expire time, not interval
authorDaniel Stenberg <daniel@haxx.se>
Thu, 2 Dec 2021 11:05:48 +0000 (12:05 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 2 Dec 2021 11:05:48 +0000 (12:05 +0100)
Since we say it is a non-repating timer

docs/libcurl/opts/CURLMOPT_TIMERFUNCTION.3

index cacc23548d2051f95a952818b77c0c1f1a6492d7..bea24e293b3894bf72218c1a8bac98988876c890 100644 (file)
@@ -40,9 +40,9 @@ Certain features, such as timeouts and retries, require you to call libcurl
 even when there is no activity on the file descriptors.
 
 Your callback function \fBtimer_callback\fP should install a non-repeating
-timer with an interval of \fBtimeout_ms\fP. When that timer fires, call
-either \fIcurl_multi_socket_action(3)\fP or \fIcurl_multi_perform(3)\fP,
-depending on which interface you use.
+timer with an expire time of \fBtimeout_ms\fP milliseconds. When that timer
+fires, call either \fIcurl_multi_socket_action(3)\fP or
+\fIcurl_multi_perform(3)\fP, depending on which interface you use.
 
 A \fBtimeout_ms\fP value of -1 passed to this callback means you should delete
 the timer. All other values are valid expire times in number of milliseconds.