mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-13 07:56:30 +00:00
Add handler for HTTP 416
This prevents retries when the server indicates an unsatisfiable MPU copy part request. References #1220.
This commit is contained in:
parent
4da02d023b
commit
cf529e0af7
@ -2482,6 +2482,11 @@ int S3fsCurl::RequestPerform(bool dontAddAuthHeaders /*=false*/)
|
||||
result = -ENOENT;
|
||||
break;
|
||||
|
||||
case 416:
|
||||
S3FS_PRN_INFO3("HTTP response code 416 was returned, returning EIO");
|
||||
result = -EIO;
|
||||
break;
|
||||
|
||||
case 501:
|
||||
S3FS_PRN_INFO3("HTTP response code 501 was returned, returning ENOTSUP");
|
||||
S3FS_PRN_DBG("Body Text: %s", bodydata.str());
|
||||
|
Loading…
Reference in New Issue
Block a user