diff options
| author | zhangchengwei <[email protected]> | 2018-11-25 15:44:17 +0800 |
|---|---|---|
| committer | zhangchengwei <[email protected]> | 2018-11-25 15:44:17 +0800 |
| commit | e38f2b0e46f7a2681805c89ddb927ec0c4c74f3b (patch) | |
| tree | 18e959762b20dcae57a6966d862be6666722e66b /cache | |
| parent | 42906a6ef4c3186a11fcb24216554ec51f2d2c60 (diff) | |
传输速率检测提高到5秒钟
Diffstat (limited to 'cache')
| -rw-r--r-- | cache/src/tango_cache_transfer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cache/src/tango_cache_transfer.cpp b/cache/src/tango_cache_transfer.cpp index f744f25..4b8b890 100644 --- a/cache/src/tango_cache_transfer.cpp +++ b/cache/src/tango_cache_transfer.cpp @@ -21,7 +21,7 @@ static inline void curl_set_common_options(CURL *curl, long transfer_timeout, ch curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 500L); curl_easy_setopt(curl, CURLOPT_TIMEOUT, transfer_timeout); //���Է��ֶ�������ij���ӽ��տ�ס����� //ctx->error="Operation too slow. Less than 1024 bytes/sec transferred the last 3 seconds" - curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 2L); + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 5L); curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 100L); curl_easy_setopt(curl, CURLOPT_USERAGENT, "aws-sdk-cpp/1.5.24 Linux/3.10.0-327.el7.x86_64 x86_64 pangu_cache"); } |
