mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-05 04:17:52 +00:00
retry on 500 only (not 400 and 500)
git-svn-id: http://s3fs.googlecode.com/svn/trunk@28 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
cbf023b1d6
commit
c10be86290
@ -129,7 +129,7 @@ if (true) { \
|
||||
long responseCode; \
|
||||
if (curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &responseCode) != 0) \
|
||||
Oof(-EIO); \
|
||||
if (responseCode == 400 || responseCode == 500) { \
|
||||
if (responseCode == 500) { \
|
||||
cout << __LINE__ << "###curlCode=" << curlCode << "(" << curl_easy_strerror(curlCode) << ")" << "###responseCode=" << responseCode << endl; \
|
||||
cout << "retrying..." << endl; \
|
||||
curlCode = curl_easy_perform(curl.get()); \
|
||||
|
Loading…
Reference in New Issue
Block a user