@@ -238,8 +238,6 @@ class IdentifierKind(Enum):
238238SIGV4_SERVICE = "rest.signing-name"
239239SIGV4_MAX_RETRIES = "rest.sigv4.max-retries"
240240SIGV4_DEFAULT_MAX_RETRIES = 10
241- SIGV4_RETRY_BACKOFF_FACTOR = 0.5
242- SIGV4_RETRY_STATUS_CODES = (429 , 500 , 502 , 503 , 504 )
243241EMPTY_BODY_SHA256 : str = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
244242OAUTH2_SERVER_URI = "oauth2-server-uri"
245243SNAPSHOT_LOADING_MODE = "snapshot-loading-mode"
@@ -697,25 +695,11 @@ def _init_sigv4(self, session: Session) -> None:
697695 from botocore .awsrequest import AWSRequest
698696 from requests import PreparedRequest
699697 from requests .adapters import HTTPAdapter
700- from urllib3 .util .retry import Retry
701-
702698 class SigV4Adapter (HTTPAdapter ):
703699 def __init__ (self , ** properties : str ):
704700 self ._properties = properties
705701 max_retries = property_as_int (self ._properties , SIGV4_MAX_RETRIES , SIGV4_DEFAULT_MAX_RETRIES )
706- super ().__init__ (
707- max_retries = Retry (
708- total = max_retries ,
709- status = max_retries ,
710- connect = max_retries ,
711- read = max_retries ,
712- # Keep retries conservative for idempotent calls.
713- allowed_methods = frozenset ({"GET" , "HEAD" , "OPTIONS" }),
714- status_forcelist = SIGV4_RETRY_STATUS_CODES ,
715- backoff_factor = SIGV4_RETRY_BACKOFF_FACTOR ,
716- respect_retry_after_header = True ,
717- )
718- )
702+ super ().__init__ (max_retries = max_retries )
719703 self ._boto_session = boto3 .Session (
720704 profile_name = get_first_property_value (self ._properties , AWS_PROFILE_NAME ),
721705 region_name = get_first_property_value (self ._properties , AWS_REGION ),
0 commit comments