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:
rrizun 2007-12-15 22:32:09 +00:00
parent cbf023b1d6
commit c10be86290
1 changed files with 1 additions and 1 deletions

View File

@ -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()); \