403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/botocore/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/botocore/__pycache__/retryhandler.cpython-314.pyc
+
��in9��b�^RIt^RIt^RIt^RIHt^RIHtHtHtH	t	H
t
]P!]4t
R]]]
]	./tRtRtRRltRRltRR	ltR
tRtRt!R
R4t!RR4t!RR]4t!RR]4t!RR]4t!RR]4t!RR]4t!RR]4tR#)�N)�crc32)�
ChecksumError�ConnectionClosedError�ConnectionError�EndpointConnectionError�ReadTimeoutError�GENERAL_CONNECTION_ERRORc��VR8Xd\P!4pMV^8:d\RV24hWV^,
,,pV#)aCalculate time to sleep based on exponential function.

The format is::

    base * growth_factor ^ (attempts - 1)

If ``base`` is set to 'rand' then a random number between
0 and 1 will be used as the base.
Base must be greater than 0, otherwise a ValueError will be
raised.

�randz.The 'base' param must be greater than 0, got: )�random�
ValueError)�base�
growth_factor�attempts�
time_to_sleeps&&& �7/usr/lib/python3/dist-packages/botocore/retryhandler.py�delay_exponentialr+sM���v�~��}�}���	
����<�T�F�C�
�	
��h��l�;�<�M���c�:�\P!\WR7#)z�Create an exponential delay function based on the attempts.

This is used so that you only have to pass it the attempts
parameter to calculate the delay.

�rr)�	functools�partialrrs&&r�!create_exponential_delay_functionrBs��������rc�J�\WR7p\WR7p\W#R7#))�operation_name)�checker�action)� create_checker_from_retry_config�create_retry_action_from_config�RetryHandler)�configrrrs&&  r�create_retry_handlerr"Ns+��.���G�-���F���7�7rc�x�VR,R,pVR,R8Xd\VR,VR,R7#R#)�__default__�delay�type�exponentialrrrN)r)r!r�delay_configs&& rrrXsB��
�-�(��1�L��F��}�,�0��f�%�&��7�
�	
�-rc��.pRp.pRV9dwVR,PR.4pVR,R,pVFGpWV,pVP\V44\V4pVfK6VP	V4KI	VetVPV4eaW,R,p	V	FKpVP\W�,44\W�,4pVfK:VP	V4KM	\V4^8Xd\
V^,VR7#\V4p
\
V
V\V4R7#)Nr$�policies�max_attempts)r+)r+�retryable_exceptions)	�get�append�_create_single_checker�_extract_retryable_exception�extend�len�MaxAttemptsDecorator�MultiChecker�tuple)r!r�checkersr+r,r*�key�current_config�retry_exception�operation_policies�
multi_checkers&&         rrres0���H��L�������-�(�,�,�Z��<���m�,�^�<���C�%�]�N��O�O�2�>�B�C�:�>�J�O��*�$�+�+�O�<���!�f�j�j��&@�&L�#�3�J�?��%�C��O�O�2�3E�3J�K�L�:�"�'��O��*�$�+�+�O�<�
&��8�}���#�H�Q�K�l�K�K�$�X�.�
�#��%�!&�';�!<�
�	
rc��RVR,9d\VR,R,4#RVR,9d\4#R#)�response�applies_when�
socket_errorsN)�_create_single_response_checker�ExceptionRaiser)r!s&rr/r/�sF���V�N�+�+�.��>�"�:�.�
�	
�
�F�>�2�	2�� � �
3rc���RV9d\VR,VR,R7pV#RV9d\VR,R7pV#RV9d\VR,R7pV#\R4h)�service_error_code�http_status_code)�status_code�
error_code)rE�	crc32body)�headerzUnknown retry policy)�ServiceErrorCodeChecker�HTTPStatusCodeChecker�CRC32Checkerr
)r=rs& rr@r@�s���x�'�)� �!3�4�� 4�5�
���N�
�x�	'�'� �!3�4�
���N�
��	 ��h�{�&;�<���N��/�0�0rc���VR,pRVPR/49d\.#RV9d1.pVR,FpVP\V,4K!	V#R#)r>rGr=r?N)r-rr1�
EXCEPTION_MAP)r!r>�
exceptions�names&   rr0r0�sf���.�)�L��l�&�&�z�2�6�6����	�L�	(��
� ��1�1�D����m�D�1�2�2���	
)rc�0a�]tRt^�toRtRtRtRtVtR#)r a�Retry handler.

The retry handler takes two params, ``checker`` object
and an ``action`` object.

The ``checker`` object must be a callable object and based on a response
and an attempt number, determines whether or not sufficient criteria for
a retry has been met.  If this is the case then the ``action`` object
(which also is a callable) determines what needs to happen in the event
of a retry.

c��WnW nR#�N)�_checker�_action)�selfrrs&&&r�__init__�RetryHandler.__init__�s���
��rc�h�RVRVRV/p\VP\4'd3VR,R,PR4pVP	RV/4VP!R/VB'd+VPVR7p\PR	V4V#\PR
4R#)
z�Handler for a retry.

Intended to be hooked up to an event handler (hence the **kwargs),
this will process retries appropriately.

�attempt_numberr=�caught_exception�request_dict�context�retries�retries_context)rzRetry needed, action of: %szNo retry needed.N�)�
isinstancerSr3r-�updaterT�logger�debug)rUrr=rZ�kwargs�checker_kwargsr^�results&&&&,   r�__call__�RetryHandler.__call__�s���
�h���� 0�
��
�d�m�m�%9�:�:�$�^�4�Y�?�C�C�I�N�O��!�!�#4�o�"F�G��=�=�*�>�*�*��\�\�8�\�4�F��L�L�6��?��M����'�(r)rTrSN)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__rVrg�__static_attributes__�__classdictcell__��
__classdict__s@rr r �s������)�)rr c�6a�]tRt^�toRtRtRtRtRtVt	R#)�BaseCheckerz�Base class for retry checkers.

Each class is responsible for checking a single criteria that determines
whether or not a retry should not happen.

c�l�VeVPW4#VeVPW4#\R4h)adDetermine if retry criteria matches.

Note that either ``response`` is not None and ``caught_exception`` is
None or ``response`` is None and ``caught_exception`` is not None.

:type attempt_number: int
:param attempt_number: The total number of times we've attempted
    to send the request.

:param response: The HTTP response (if one was received).

:type caught_exception: Exception
:param caught_exception: Any exception that was caught while trying to
    send the HTTP response.

:return: True, if the retry criteria matches (and therefore a retry
    should occur.  False if the criteria does not match.

z,Both response and caught_exception are None.)�_check_response�_check_caught_exceptionr
)rUrYr=rZs&&&&rrg�BaseChecker.__call__�sE��,���'�'��A�A�
�
)��/�/���
��K�L�Lrc��R#rRr_�rUrYr=s&&&rru�BaseChecker._check_response����rc��R#rRr_�rUrYrZs&&&rrv�#BaseChecker._check_caught_exceptionr{rr_N)
rirjrkrlrmrgrurvrnrorps@rrsrs�s�����M�>
�
�
rrsc�:a�]tRtRtoRtRRltRtRtRtVt	R#)	r3ia{Allow retries up to a maximum number of attempts.

This will pass through calls to the decorated retry checker, provided
that the number of attempts does not exceed max_attempts.  It will
also catch any retryable_exceptions passed in.  Once max_attempts has
been exceeded, then False will be returned or the retryable_exceptions
that was previously being caught will be raised.

Nc�*�WnW nW0nR#rR�rS�
_max_attempts�_retryable_exceptions)rUrr+r,s&&&&rrV�MaxAttemptsDecorator.__init__s���
�)��%9�"rc�:�V'd*\VPR^4VP4VR&VPWV4pV'dPWP8�d>Ve"RV^,9dRV^,R,R&\PRV4R#V#R#)�max�ResponseMetadataT�MaxAttemptsReachedz0Reached the maximum number of retry attempts: %sF)r�r-r��
_should_retryrbrc)rUrYr=rZr^�should_retrys&&&&& rrg�MaxAttemptsDecorator.__call__s����%(��#�#�E�1�-�t�/A�/A�&�O�E�"��)�)��&6�
����!3�!3�3��'�,>�(�1�+�,M���Q�K� 2�3�4H�I����F�"���#�#�rc��VP'd$WP8dVPWV4#VPWV4# TPd$p\P	RTRR7Rp?R#Rp?ii;i)z,retry needed, retryable exception caught: %sT)�exc_infoN)r�r�rSrbrc)rUrYr=rZ�es&&&& rr��"MaxAttemptsDecorator._should_retry0s����%�%�%�.�;M�;M�*M�

��}�}�"�.>����=�=��;K�L�L���-�-�
����B��!���
��

�s�A�A<�A7�7A<r�rR)
rirjrkrlrmrVrgr�rnrorps@rr3r3s �����:�
�8M�Mrr3c�,a�]tRtRtoRtRtRtVtR#)rJiCc��WnR#rR��_status_code)rUrEs&&rrV�HTTPStatusCodeChecker.__init__Ds��'�rc��V^,PVP8Xd#\PRVP4R#R#)rz5retry needed: retryable HTTP status code received: %sTF)rEr�rbrcrys&&&rru�%HTTPStatusCodeChecker._check_responseGs:���A�;�"�"�d�&7�&7�7��L�L�G��!�!�
��rr�N�rirjrkrlrVrurnrorps@rrJrJCs����(��rrJc�,a�]tRtRtoRtRtRtVtR#)rIiRc��WnW nR#rR)r��_error_code)rUrErFs&&&rrV� ServiceErrorCodeChecker.__init__Ss��'��%�rc��V^,PVP8XdfV^,PR/4PR4pW0P8Xd.\PRVPVP4R#R#)r�Error�Codez>retry needed: matching HTTP status and error code seen: %s, %sTF)rEr�r-r�rbrc)rUrYr=�actual_error_codes&&& rru�'ServiceErrorCodeChecker._check_responseWsq���A�;�"�"�d�&7�&7�7� (������� <� @� @�� H�� �$4�$4�4������%�%��$�$�	��r)r�r�Nr�rps@rrIrIRs����&��rrIc�,a�]tRtRtoRtRtRtVtR#)r4iec��WnR#rR��	_checkers)rUr6s&&rrV�MultiChecker.__init__fs��!�rc�V�VPFpV!WV4pV'gKVu#	R#)Fr�)rUrYr=rZr�checker_responses&&&&  rrg�MultiChecker.__call__is4���~�~�G�&��*:� �� ��'�'�&�rr�N)rirjrkrlrVrgrnrorps@rr4r4es����"��rr4c�,a�]tRtRtoRtRtRtVtR#)rKisc��WnR#rR��_header_name)rUrHs&&rrV�CRC32Checker.__init__ts��"�rc��V^,pVPPVP4pVf#\P	RVP4R#\V^,P4R,pV\V48Xg8\P	R\V4V4\R\V4VR7hR#)rNz?crc32 check skipped, the %s header is not in the http response.l��z>retry needed: crc32 check failed, expected != actual: %s != %sr)�
checksum_type�expected_checksum�actual_checksum)	�headersr-r�rbrcr�content�intr)rUrYr=�
http_response�expected_crc�actual_crc32s&&&   rru�CRC32Checker._check_responsexs��� ���
�$�,�,�0�0��1B�1B�C�����L�L�(��!�!�
�!��!��!4�!4�5�
�B�L��3�|�#4�4�������%� �	�$�")�&)�,�&7�$0���5rr�Nr�rps@rrKrKss����#��rrKc�*a�]tRtRtoRtRtRtVtR#)rAi�zXRaise any caught exceptions.

This class will raise any non None ``caught_exception``.

c��VhrRr_r}s&&&rrv�'ExceptionRaiser._check_caught_exception�s
���rr_N)rirjrkrlrmrvrnrorps@rrArA�s������rrArR)r�loggingr�binasciir�botocore.exceptionsrrrrr�	getLoggerrirbrMrrr"rrr/r@r0r rsr3rJrIr4rKrAr_rr�<module>r�s�����
����
�	�	�8�	$�������	!��
��.	�8�

�
�D!��$�&)�&)�R+
�+
�\<M�;�<M�~�K���k��&�;���;��<�k�r

Youez - 2016 - github.com/yon3zu
LinuXploit