mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=11280
This commit is contained in:
parent
8d8544204c
commit
be3520bf38
|
@ -11086,3 +11086,11 @@ Charlie 12 Oct 2006
|
||||||
ViewResources.cpp
|
ViewResources.cpp
|
||||||
common/
|
common/
|
||||||
wxPieCtrl.cpp,h
|
wxPieCtrl.cpp,h
|
||||||
|
|
||||||
|
Rom 12 Oct 2006
|
||||||
|
- Bug Fix: CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_RECV_SPEED_LARGE
|
||||||
|
are apart of an enum and not a preprocessor define. Check for
|
||||||
|
compatibility by using LIBCURL_VERSION_NUM instead.
|
||||||
|
|
||||||
|
client/
|
||||||
|
http_curl.C
|
||||||
|
|
|
@ -1039,23 +1039,19 @@ void HTTP_OP::update_speed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTTP_OP::set_speed_limit(bool is_upload, double bytes_sec) {
|
void HTTP_OP::set_speed_limit(bool is_upload, double bytes_sec) {
|
||||||
|
#if LIBCURL_VERSION_NUM >= 0x070f05
|
||||||
CURLcode cc = CURLE_OK;
|
CURLcode cc = CURLE_OK;
|
||||||
#if defined(CURLOPT_MAX_SEND_SPEED_LARGE) || defined(CURLOPT_MAX_RECV_SPEED_LARGE)
|
|
||||||
curl_off_t bs = (curl_off_t)bytes_sec;
|
curl_off_t bs = (curl_off_t)bytes_sec;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (is_upload) {
|
if (is_upload) {
|
||||||
#ifdef CURLOPT_MAX_SEND_SPEED_LARGE
|
|
||||||
cc = curl_easy_setopt(curlEasy, CURLOPT_MAX_SEND_SPEED_LARGE, bs);
|
cc = curl_easy_setopt(curlEasy, CURLOPT_MAX_SEND_SPEED_LARGE, bs);
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
#ifdef CURLOPT_MAX_RECV_SPEED_LARGE
|
|
||||||
cc = curl_easy_setopt(curlEasy, CURLOPT_MAX_RECV_SPEED_LARGE, bs);
|
cc = curl_easy_setopt(curlEasy, CURLOPT_MAX_RECV_SPEED_LARGE, bs);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if (cc) {
|
if (cc) {
|
||||||
msg_printf(NULL, MSG_ERROR, "Curl error: %s", curl_easy_strerror(cc));
|
msg_printf(NULL, MSG_ERROR, "Curl error: %s", curl_easy_strerror(cc));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *BOINC_RCSID_57f273bb60 = "$Id$";
|
const char *BOINC_RCSID_57f273bb60 = "$Id$";
|
||||||
|
|
Loading…
Reference in New Issue