mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:13:32 +03:00
XFERINFOFUNCTION: support CURL_PROGRESSFUNC_CONTINUE
(also for PROGRESSFUNCTION) By returning this value from the callback, the internal progress function call is still called afterward. Closes #4599
This commit is contained in:
parent
9b879160df
commit
7cf18b05e0
5 changed files with 27 additions and 11 deletions
|
|
@ -60,8 +60,11 @@ Unknown/unused argument values passed to the callback will be set to zero
|
|||
the callback will be called one or more times first, before it knows the data
|
||||
sizes so a program must be made to handle that.
|
||||
|
||||
Returning a non-zero value from this callback will cause libcurl to abort the
|
||||
transfer and return \fICURLE_ABORTED_BY_CALLBACK\fP.
|
||||
If your callback function returns CURL_PROGRESSFUNC_CONTINUE it will cause
|
||||
libcurl to continue executing the default progress function.
|
||||
|
||||
Returning any other non-zero value from this callback will cause libcurl to
|
||||
abort the transfer and return \fICURLE_ABORTED_BY_CALLBACK\fP.
|
||||
|
||||
If you transfer data with the multi interface, this function will not be
|
||||
called during periods of idleness unless you call the appropriate libcurl
|
||||
|
|
|
|||
|
|
@ -57,8 +57,11 @@ Unknown/unused argument values passed to the callback will be set to zero
|
|||
the callback will be called one or more times first, before it knows the data
|
||||
sizes so a program must be made to handle that.
|
||||
|
||||
Returning a non-zero value from this callback will cause libcurl to abort the
|
||||
transfer and return \fICURLE_ABORTED_BY_CALLBACK\fP.
|
||||
If your callback function returns CURL_PROGRESSFUNC_CONTINUE it will cause
|
||||
libcurl to continue executing the default progress function.
|
||||
|
||||
Returning any other non-zero value from this callback will cause libcurl to
|
||||
abort the transfer and return \fICURLE_ABORTED_BY_CALLBACK\fP.
|
||||
|
||||
If you transfer data with the multi interface, this function will not be
|
||||
called during periods of idleness unless you call the appropriate libcurl
|
||||
|
|
|
|||
|
|
@ -869,6 +869,7 @@ CURL_POLL_INOUT 7.14.0
|
|||
CURL_POLL_NONE 7.14.0
|
||||
CURL_POLL_OUT 7.14.0
|
||||
CURL_POLL_REMOVE 7.14.0
|
||||
CURL_PROGRESSFUNC_CONTINUE 7.68.0
|
||||
CURL_PROGRESS_BAR 7.1.1 - 7.4.1
|
||||
CURL_PROGRESS_STATS 7.1.1 - 7.4.1
|
||||
CURL_PUSH_DENY 7.44.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue