[CP] map 'curlCode 28' to OB_TIMEOUT

This commit is contained in:
obdev 2024-07-11 11:16:48 +00:00 committed by ob-robot
parent a691750c86
commit f792be7c1b

View File

@ -606,7 +606,11 @@ static void convert_http_error(const Aws::S3::S3Error &s3_err, int &ob_errcode)
break;
}
default: {
ob_errcode = OB_S3_ERROR;
if (err_msg.find("curlCode: 28") != std::string::npos) {
ob_errcode = OB_TIMEOUT;
} else {
ob_errcode = OB_S3_ERROR;
}
break;
}
}