From decc454be4c8a3fc37cf46bb14d1b2da283dc47c Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Fri, 23 Jan 2009 15:40:33 +0000 Subject: At long last, update the curl port to its almost-current version, 7.19.2. Yes, there's been a new 7.19.3 version for a couple of days now, but I figure you folks have been waiting for me much too much as it is :( Apologies all around! Prompted by: several PR's and more people (and portmgrs) than I dare admit --- .../files/patch-docs::libcurl::curl_easy_pause.html | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 ftp/curl/files/patch-docs::libcurl::curl_easy_pause.html (limited to 'ftp/curl/files/patch-docs::libcurl::curl_easy_pause.html') diff --git a/ftp/curl/files/patch-docs::libcurl::curl_easy_pause.html b/ftp/curl/files/patch-docs::libcurl::curl_easy_pause.html deleted file mode 100644 index 3f557dce5782..000000000000 --- a/ftp/curl/files/patch-docs::libcurl::curl_easy_pause.html +++ /dev/null @@ -1,21 +0,0 @@ -diff -urN -urN -x .svn ../../vendor/curl/docs/libcurl/curl_easy_pause.html ./docs/libcurl/curl_easy_pause.html ---- ../../vendor/curl/docs/libcurl/curl_easy_pause.html 2008-01-28 13:31:59.000000000 +0200 -+++ ./docs/libcurl/curl_easy_pause.html 2008-04-02 15:51:19.000000000 +0300 -@@ -49,7 +49,7 @@ -

CURLcode curl_easy_pause(CURL *handle , int bitmask ); -

DESCRIPTION

-

Using this function, you can explicitly mark a running connection to get paused, and you can unpause a connection that was previously paused. --

A connection can made to pause by using this function or by letting the read or the write callbacks return the proper magic return code (CURL_READFUNC_PAUSE and CURL_WRITEFUNC_PAUSE). -+

A connection can be paused by using this function or by letting the read or the write callbacks return the proper magic return code (CURL_READFUNC_PAUSE and CURL_WRITEFUNC_PAUSE). -

NOTE: while it may feel tempting, take care and notice that you cannot call this function from another thread. -

When this function is called to unpause reading, the chance is high that you will get your write callback called before this function returns. -

The handle argument is of course identifying the handle that operates on the connection you want to pause or unpause. -@@ -65,7 +65,7 @@ -

CURLE_OK (zero) means that the option was set properly, and a non-zero return code means something wrong occurred after the new state was set. See the libcurl-errors(3) man page for the full list with descriptions.

AVAILABILITY

-

This function was added in libcurl 7.18.0. Before this version, there was no explicit support for pausing transfers.

MEMORY USE

-

When pausing a read by returning the magic return code from a write callback, the read data is already in libcurl's internal buffers so it'll have to keep it in an allocated buffer until the reading is again unpaused using this function. --

If the downloaded data is compressed and is asked to get uncompressed automatially on download, libcurl will continue to uncompress the entire downloaded chunk and it will cache the data uncompressed. This has the side- effect that if you download something that is compressed a lot, it can result in a very large data amount needing to be allocated to save the data during the pause. This said, you should probably consider not using paused reading if you allow libcurl to uncompress data automatically.

SEE ALSO

-+

If the downloaded data is compressed and is asked to get uncompressed automatically on download, libcurl will continue to uncompress the entire downloaded chunk and it will cache the data uncompressed. This has the side- effect that if you download something that is compressed a lot, it can result in a very large data amount needing to be allocated to save the data during the pause. This said, you should probably consider not using paused reading if you allow libcurl to uncompress data automatically.

SEE ALSO

-

curl_easy_cleanup (3) curl_easy_reset (3)

- This HTML page was made with roffit. - -- cgit v1.2.3