diff --git a/src/curl.cpp b/src/curl.cpp index aa031e6..05e9165 100644 --- a/src/curl.cpp +++ b/src/curl.cpp @@ -3091,12 +3091,14 @@ int S3fsMultiCurl::MultiRead(void) // as possibly in multipart DPRN("failed a request(%ld: %s)", responseCode, s3fscurl->url.c_str()); isRetry = true; - }else{ + }else if(500 == responseCode){ // case of all other result, do retry.(11/13/2013) // because it was found that s3fs got 500 error from S3, but could success // to retry it. DPRN("failed a request(%ld: %s)", responseCode, s3fscurl->url.c_str()); isRetry = true; + }else{ + DPRN("failed a request(%ld: %s)", responseCode, s3fscurl->url.c_str()); } }else{ DPRN("failed a request(Unknown respons code: %s)", s3fscurl->url.c_str()); diff --git a/src/s3fs.cpp b/src/s3fs.cpp index cf43988..a55ec6e 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -2090,7 +2090,7 @@ static S3fsCurl* multi_head_retry_callback(S3fsCurl* s3fscurl) delete newcurl; return NULL; } - newcurl->SetMultipartRetryCount(s3fscurl->GetMultipartRetryCount()); + newcurl->SetMultipartRetryCount(s3fscurl->GetMultipartRetryCount() + 1); return newcurl; }