curl_easy_pause: suggest one way to unpause

This commit is contained in:
Clemens Gruber 2013-09-08 19:01:26 +02:00 committed by Daniel Stenberg
parent 241aeadc50
commit 632b3d81d6

View File

@ -38,8 +38,11 @@ that returns pause signals to the library that it couldn't take care of any
data at all, and that data will then be delivered again to the callback when data at all, and that data will then be delivered again to the callback when
the writing is later unpaused. the writing is later unpaused.
NOTE: while it may feel tempting, take care and notice that you cannot call While it may feel tempting, take care and notice that you cannot call this
this function from another thread. function from another thread. To unpause, you may for example call it from the
progress callback (see \fIcurl_easy_setopt(3)\fP's
\fICURLOPT_PROGRESSFUNCTION\fP), which gets called at least once per second,
even if the connection is paused.
When this function is called to unpause reading, the chance is high that you When this function is called to unpause reading, the chance is high that you
will get your write callback called before this function returns. will get your write callback called before this function returns.