* Use ChunkHandle instead of ChunkListNode*, this will include write

reference counter.

* Get errno message when chunks can't be allocated.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@556 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-09-09 16:12:29 +00:00
parent 8732e457fa
commit c347ccc439
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -69,7 +69,7 @@ CurlStack::perform() {
code = curl_multi_perform((CURLM*)m_handle, &s);
if (code > 0)
throw torrent::local_error("Error calling curl_multi_perform");
throw std::runtime_error("Error calling curl_multi_perform");
if (s != m_size) {
// Done with some handles.
@@ -82,7 +82,7 @@ CurlStack::perform() {
rak::equal(msg->easy_handle, std::mem_fun(&CurlGet::handle)));
if (itr == m_getList.end())
throw torrent::client_error("Could not find CurlGet with the right easy_handle");
throw std::logic_error("Could not find CurlGet with the right easy_handle");
(*itr)->perform(msg);
} while (t);
@@ -110,6 +110,9 @@ CurlStack::add_get(CurlGet* get) {
m_size++;
m_getList.push_back(get);
// Curl ML suggest we need to do perform after adding a handle.
perform();
}
void