]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_easy_pause.3: remove explanation of progress function
authorJay Satiro <raysatiro@yahoo.com>
Wed, 15 Jun 2022 05:20:27 +0000 (01:20 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 16 Jun 2022 07:18:04 +0000 (03:18 -0400)
- Remove misleading text that says progress function "gets called at
  least once per second, even if the connection is paused."

The progress function behavior is more nuanced and the user is better
served reading the progress function doc rather than attempt to explain
it in the curl_easy_pause doc.

The progress function can only be called at least once per second if an
appropriate multi transfer function is called (eg curl_multi_perform) in
that time. For a paused transfer there may not be such a call. Rather
than explain this in detail in the curl_easy_pause doc, rely on the user
reading the CURLOPT_PROGRESSFUNCTION doc.

Ref: https://github.com/curl/curl/issues/8983

Closes https://github.com/curl/curl/pull/9015

docs/libcurl/curl_easy_pause.3

index e72c2de244a2dac8a9428836493b639ed98f7944..f8385bb70374d0e82f638a9f8127e0a7835882d8 100644 (file)
@@ -43,8 +43,7 @@ the transfer is unpaused.
 
 While it may feel tempting, take care and notice that you cannot call this
 function from another thread. To unpause, you may for example call it from the
-progress callback (\fICURLOPT_PROGRESSFUNCTION(3)\fP), which gets called at
-least once per second, even if the connection is paused.
+progress callback (\fICURLOPT_PROGRESSFUNCTION(3)\fP).
 
 When this function is called to unpause receiving, the chance is high that you
 will get your write callback called before this function returns.