ok

Mini Shell

Direktori : /opt/imunify360/venv/lib/python3.11/site-packages/aiohttp/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/aiohttp/__pycache__/connector.cpython-311.pyc

�

m��f�����ddlZddlZddlZddlZddlZddlZddlmZmZddl	m
Z
ddlmZddl
mZmZddlmZddlmZddlmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"ddl#Z#d	d
l$m%Z%m&Z&d	dl'm(Z(d	dl)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3d	d
l4m5Z5d	dl6m7Z7m8Z8m9Z9d	dl&m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?d	dl@mAZAd	dlBmCZCd	dlDmEZE	ddlFZFeFjGZGn#eH$rdZFeIZGYnwxYwdZJerd	dlKmLZLd	dl6mMZMd	dlNmOZOGd�d��ZPGd�d��ZQGd�d��ZRGd�d��ZSGd�d ��ZTGd!�d"eS��ZUGd#�d$eS��ZVGd%�d&eS��ZWdS)'�N)�defaultdict�deque)�suppress)�SimpleCookie)�cycle�islice)�	monotonic)�
TracebackType)�
TYPE_CHECKING�Any�	Awaitable�Callable�DefaultDict�Dict�Iterator�List�Optional�Set�Tuple�Type�Union�cast�)�hdrs�helpers)�AbstractResolver)
�ClientConnectionError�ClientConnectorCertificateError�ClientConnectorError�ClientConnectorSSLError�ClientHttpProxyError�ClientProxyConnectionError�ServerFingerprintMismatch�UnixClientConnectorError�cert_errors�
ssl_errors)�ResponseHandler)�
ClientRequest�Fingerprint�_merge_ssl_params)�PY_36�ceil_timeout�get_running_loop�
is_ip_address�noop�sentinel)�	RESPONSES)�EventResultOrError)�DefaultResolver)�
BaseConnector�TCPConnector�
UnixConnector�NamedPipeConnector)�
ClientTimeout)�
ConnectionKey)�Tracec�B�eZdZdZdeeddfd�Zdefd�Zdd�ZdS)	�_DeprecationWaiter��
_awaitable�_awaited�	awaitable�returnNc�"�||_d|_dS�NFr=)�selfr@s  �H/opt/imunify360/venv/lib64/python3.11/site-packages/aiohttp/connector.py�__init__z_DeprecationWaiter.__init__Qs��#�����
�
�
�c�B�d|_|j���S�NT)r?r>�	__await__�rDs rErJz_DeprecationWaiter.__await__Us����
���(�(�*�*�*rGc�L�|jstjdt��dSdS)NzDConnector.close() is a coroutine, please use await connector.close())r?�warnings�warn�DeprecationWarningrKs rE�__del__z_DeprecationWaiter.__del__Ys<���}�	��M�5�"�
�
�
�
�
�	�	rG�rAN)	�__name__�
__module__�__qualname__�	__slots__r
rrFrJrP�rGrEr<r<Nsn������*�I��)�C�.��T�����+�3�+�+�+�+������rGr<c
�0�eZdZdZdZdddddedejddf
d	�Zde	fd
�Z
efdeddfd�Z
edejfd
���Zedeejfd���Zedeefd���Zdegdfddfd�Zdd�Zdd�Zdd�Zedefd���ZdS)�
ConnectionN�	connectorr4�keyr9�protocol�looprAc���||_||_||_||_g|_|���r-t
jtj	d����|_
dSdS)Nr)�_key�
_connector�_loop�	_protocol�
_callbacks�	get_debug�	traceback�
extract_stack�sys�	_getframe�_source_traceback)rDrYrZr[r\s     rErFzConnection.__init__gsi����	�#�����
�4<���46����>�>���	O�%.�%<�S�]�1�=M�=M�%N�%N�D�"�"�"�	O�	OrGc��d|j�d�S)NzConnection<�>)r^rKs rE�__repr__zConnection.__repr__ws��)�T�Y�)�)�)�)rG�	_warningsc�F�|j��trd|i}ni}|jd|��tfi|��|j���rdS|j�|j|jd���|dd�}|j	�
|j	|d<|j�
|��dSdS)N�sourcezUnclosed connection T��should_closezUnclosed connection)�client_connection�message�source_traceback)rar+rN�ResourceWarningr`�	is_closedr_�_releaser^rh�call_exception_handler)rDrl�kwargs�contexts    rErPzConnection.__del__zs����>�%��
�"�D�)������I�N�:�$�:�:�O�V�V�v�V�V�V��z�#�#�%�%�
����O�$�$�T�Y���T�$�R�R�R�,0�=R�S�S�G��%�1�.2�.D��*�+��J�-�-�g�6�6�6�6�6�&�%rGc�H�tjdtd���|jS)Nz%connector.loop property is deprecated�)�
stacklevel)rMrNrOr`rKs rEr\zConnection.loop�s.���
�3�5G�TU�	
�	
�	
�	
��z�rGc�,�|j�dS|jjS�N)ra�	transportrKs rErzConnection.transport�s���>�!��4��~�'�'rGc��|jSr~)rarKs rEr[zConnection.protocol�s
���~�rG�callbackc�B�|�|j�|��dSdSr~)rb�append)rDr�s  rE�add_callbackzConnection.add_callback�s,�����O�"�"�8�,�,�,�,�,� �rGc��|jdd�gc}|_|D]8}tt��5|��ddd��n#1swxYwY�9dSr~)rbr�	Exception)rD�	callbacks�cbs   rE�_notify_releasezConnection._notify_release�s���%)�_�Q�Q�Q�%7��"�	�4�?��	�	�B��)�$�$�
�
������
�
�
�
�
�
�
�
�
�
�
����
�
�
�
��	�	s�A�A	�A	c��|���|j�0|j�|j|jd���d|_dSdS)NTro)r�rar_rvr^rKs rE�closezConnection.close�sP���������>�%��O�$�$�T�Y���T�$�R�R�R�!�D�N�N�N�&�%rGc��|���|j�:|j�|j|j|jj���d|_dSdS)Nro)r�rar_rvr^rprKs rE�releasezConnection.release�s`���������>�%��O�$�$��	�4�>���8S�
%�
�
�
�"�D�N�N�N�	&�%rGc�H�|jdup|j���Sr~)ra�is_connectedrKs rE�closedzConnection.closed�s%���~��%�J�T�^�-H�-H�-J�-J�)J�JrGrQ)rRrSrTrh�
_transportr'�asyncio�AbstractEventLooprF�strrkrMrrP�propertyr\r�	Transportrr[rr�r�r�r��boolr�rVrGrErXrXbs����������J�O�"�O��O�"�	O�
�'�O�
�
O�O�O�O� *�#�*�*�*�*�(0�7�7��7�D�7�7�7�7�"��g�/�����X���(�8�G�$5�6�(�(�(��X�(�
��(�?�3�����X��-�X�b�$�h�%7�-�D�-�-�-�-�����"�"�"�"�"�"�"�"��K��K�K�K��X�K�K�KrGrXc��eZdZdZdd�ZdS)�_TransportPlaceholderz.placeholder for BaseConnector.connect functionrANc��dSr~rVrKs rEr�z_TransportPlaceholder.close�s���rGrQ)rRrSrT�__doc__r�rVrGrEr�r��s.������8�8�
�
�
�
�
�
rGr�c�`�eZdZdZdZdZdZedddddd�d	ee	de
fd
ededed
ede
ejddfd�Zefdeddfd�Zd8d�Zdeddfd�Zd8d�Z			d9de
eede
ede
eddfd�Zedefd���Zedefd���Zedefd���Zd:d�Zdd d!e ddfd"�Z!d:d#�Z"de#dfd$�Z$d:d%�Z%edefd&���Z&dd defd'�Z'd(d)d*e(d+d,d-de)fd.�Z*dd de
e fd/�Z+d:d0�Z,dd d1e ddfd2�Z-dd3�dd d4e d5eddfd6�Z.d(d)d*e(d+d,d-de fd7�Z/dS);r4a�Base connector class.

    keepalive_timeout - (optional) Keep-alive timeout.
    force_close - Set to True to force close and do reconnect
        after each request (and between redirects).
    limit - The total number of simultaneous connections.
    limit_per_host - Number of simultaneous connections to one host.
    enable_cleanup_closed - Enables clean-up closed ssl transports.
                            Disabled by default.
    loop - Optional event loop.
    TNg@F�dr��keepalive_timeout�force_close�limit�limit_per_host�enable_cleanup_closedr\r�r�r�r�r�r\rAc���|r|�|turtd���n|turd}t|��}d|_|���r+tjtjd����|_	i|_
||_||_t��|_tt��|_t#t$|��|_||_tt*��|_||_t1jt4|���|_t9��|_d|_d|_||_ g|_!|�"��dS)Nz6keepalive_timeout cannot be set if force_close is Trueg.@Fr�r\)#r0�
ValueErrorr-�_closedrcrdrerfrgrh�_conns�_limit�_limit_per_host�set�	_acquiredr�_acquired_per_hostr�float�_keepalive_timeout�_force_closer�_waitersr`�	functools�partialr'�_factoryr�cookies�_cleanup_handle�_cleanup_closed_handle�_cleanup_closed_disabled�_cleanup_closed_transports�_cleanup_closed)rDr�r�r�r�r�r\s       rErFzBaseConnector.__init__�sY���	)� �,�1B�(�1R�1R� �O�����!�H�,�,�$(�!���%�%������>�>���	O�%.�%<�S�]�1�=M�=M�%N�%N�D�"�PR������-���/2�u�u���
����	
��#'�u�.?�"@�"@���'���$�E�*�*��
���
�!�)�/��E�E�E��
�*6�.�.���?C���FJ��#�,A�(A��%�MO��'��������rGrlc�D�|jrdS|jsdSd�|j���D��}|���trd|i}ni}|jd|��tfi|��||dd�}|j�
|j|d<|j�	|��dS)Nc�,�g|]}t|����SrV)�repr)�.0�cs  rE�
<listcomp>z)BaseConnector.__del__.<locals>.<listcomp>s��7�7�7�Q��a���7�7�7rGrnzUnclosed connector zUnclosed connector)rY�connectionsrrrs)
r�r��values�_closer+rNrtrhr`rw)rDrl�connsrxrys     rErPzBaseConnector.__del__s����<�	��F��{�	��F�7�7�$�+�"4�"4�"6�"6�7�7�7�����
�
�
��	���%�F�F��F��	��5�T�5�5��Q�Q�&�Q�Q�Q�� �+�
�
��
�!�-�*.�*@�G�&�'��
�)�)�'�2�2�2�2�2rGc�:�tjdt��|S)NzH"with Connector():" is deprecated, use "async with Connector():" instead)rMrNrOrKs rE�	__enter__zBaseConnector.__enter__#s%���
�
4��	
�	
�	
�
�rG�excc�.�|���dSr~)r�)rDr�s  rE�__exit__zBaseConnector.__exit__+s�����
�
�
�
�
rGc��
K�|Sr~rVrKs rE�
__aenter__zBaseConnector.__aenter__.s�����rG�exc_type�	exc_value�
exc_tracebackc��>K�|����d{V��dSr~)r�)rDr�r�r�s    rE�	__aexit__zBaseConnector.__aexit__1s.�����j�j�l�l���������rGc��|jS)z1Ultimately close connection on releasing if True.)r�rKs rEr�zBaseConnector.force_close9s
��� � rGc��|jS)z�The total number for simultaneous connections.

        If limit is 0 the connector has no limit.
        The default limit size is 100.
        )r�rKs rEr�zBaseConnector.limit>s���{�rGc��|jS)z�The limit for simultaneous connections to the same endpoint.

        Endpoints are the same if they are have equal
        (host, port, is_ssl) triple.
        )r�rKs rEr�zBaseConnector.limit_per_hostGs
���#�#rGc���|jr |j���d|_|j���}|j}|jr�i}||z
}|j���D]�\}}g}|D]�\}}	|���re|	|z
dkrD|j}
|�	��|j
r!|js|j�
|
���f|�
||	f���~|j}
|�	��|j
r!|js|j�
|
����|r|||<��||_|jr#tj|d||j��|_dSdS)zCleanup unused transports.Nr�_cleanup)r��cancelr`�timer�r��itemsr�rr��is_sslr�r�r�r�weakref_handle)rD�now�timeoutr��deadlinerZr��alive�proto�use_timers           rEr�zBaseConnector._cleanupPs�����	(�� �'�'�)�)�)�$(�D� ��j�o�o�����)���;�	&��K��W�}�H�"�k�/�/�1�1�
-�
-�
��U���',�
N�
N�O�E�8��)�)�+�+�N�#�h�.��2�2�(-��I�!�K�K�M�M�M�"�z�R�$�2O�R� $� ?� F� F�y� Q� Q� Q��!�L�L�%��):�;�;�;�;�$)�O�	����
�
�
��:�N�d�.K�N� �;�B�B�9�M�M�M���-�',�K��$��%�D�K��;�	�#*�#9��j�'�4�:�$�$�D� � � �	�	rGrZr9�valc�r�|j}||vrdS||}|�|��|s
|j|=dSdSr~)r��remove)rDrZr��acquired_per_hostr�s     rE�_drop_acquired_per_hostz%BaseConnector._drop_acquired_per_hostys]��!�3���'�'�'��F�!�#�&��
���S�����	-��'��,�,�,�	-�	-rGc���|jr|j���|jD]}|�|����g|_|js(tj|d|j|j��|_dSdS)z~Double confirmation for transport close.

        Some broken ssl servers may leave socket open without proper close.
        Nr�)	r�r�r��abortr�rr��_cleanup_closed_periodr`)rDrs  rEr�zBaseConnector._cleanup_closed�s���
�&�	1��'�.�.�0�0�0��8�	"�	"�I��$����!�!�!��*,��'��,�	�*1�*@��'��)D�d�j�+�+�D�'�'�'�	�	rGc�`�|���tt����S)zClose all opened transports.)r�r<r/rKs rEr�zBaseConnector.close�s!�����
�
�
�!�$�&�&�)�)�)rGc��|jrdSd|_	|j���ru	|j���|j���|j���d|_|j���d|_	dS|jr|j�
��|j	r|j	�
��|j���D]}|D]\}}|�����|jD]}|����|jD]}|�|�
���	|j���|j���|j���d|_|j���d|_	dS#|j���|j���|j���d|_|j���d|_	wxYwrI)r�r`rur��clearr�r�r�r�r�r�r�r�r�)rD�datar��t0rs     rEr�zBaseConnector._close�sP���<�	��F����	/��z�#�#�%�%�
��,
�K�������N� � �"�"�"��M���!�!�!�#'�D� ��+�1�1�3�3�3�*.�D�'�'�'�1�#�
.��$�+�+�-�-�-��*�
5��+�2�2�4�4�4���*�*�,�,�
"�
"��!%�"�"�I�E�2��K�K�M�M�M�M�"���
�
�����
�
�
�
�!�<�
&�
&�	��(��O�O�%�%�%��
&�

�K�������N� � �"�"�"��M���!�!�!�#'�D� ��+�1�1�3�3�3�*.�D�'�'�'��
�K�������N� � �"�"�"��M���!�!�!�#'�D� ��+�1�1�3�3�3�*.�D�'�.�.�.�.s�G� B6G�A4H?c��|jS)z;Is connector closed.

        A readonly property.
        )r�rKs rEr�zBaseConnector.closed�s���|�rGc�t�|jrh|jt|j��z
}|jrD|dkr>||jvr5|j�|��}|�J�|jt|��z
}nH|jr?||jvr6|j�|��}|�J�|jt|��z
}nd}|S)z�
        Return number of available connections.

        The limit, limit_per_host and the connection key are taken into account.

        If it returns less than 1 means that there are no connections
        available.
        rNr)r��lenr�r�r��get)rDrZ�	available�acquireds    rE�_available_connectionsz$BaseConnector._available_connections�s����;�	���c�$�.�&9�&9�9�I��$�
A���M�M��4�2�2�2��2�6�6�s�;�;���+�+�+� �0�3�x�=�=�@�	��
�
!�	�c�T�-D�&D�&D��.�2�2�3�7�7�H��'�'�'��,�s�8�}�}�<�I�I��I��rG�reqr(�tracesr:r�r8c��K�|j}|�|��}|dks
||jv�r|j���}|j|�|��|r|D]}|����d{V���	|�d{V��nO#t$rB}||jvr2	|j|�|��n#t$rYnwxYw|�d}~wwxYw	||jvr|j|s|j|=n##||jvr|j|s|j|=wxYw|r|D]}|�
���d{V���|�|��}	|	��yttt����}
|j�|
��|j|�|
��|r|D]}|����d{V���	|�|||���d{V��}	|jr#|	���t-d���	|js0|j�|
��|�||
��nZ#t$rM|jsD|j�|
��|�||
��|����wxYw|r|D]}|����d{V���n�|r�ttt����}
|j�|
��|j|�|
��|D]}|����d{V���|j�|
��|�||
��|j�|	��|j|�|	��t7|||	|j��S)z'Get from pool or create new connection.rNzConnector is closed.)�connection_keyr�r�r`�
create_futurer��send_connection_queued_start�
BaseExceptionr�r��send_connection_queued_end�_getrr'r�r��addr��send_connection_create_start�_create_connectionr�r�rr��_release_waiter�send_connection_create_end�send_connection_reuseconnrX)rDr�r�r�rZr��fut�trace�er��placeholders           rE�connectzBaseConnector.connect�s������ ���/�/��4�4�	���>�>�S�D�M�1�1��*�*�*�,�,�C�
�M�#��%�%�c�*�*�*��
?�#�?�?�E��<�<�>�>�>�>�>�>�>�>�>�>�
+��	�	�	�	�	�	�	�	�� �	
�	
�	
��$�-�'�'���
�c�*�1�1�#�6�6�6�6��%����������������	
������$�-�'�'��
�c�0B�'��
�c�*����$�-�'�'��
�c�0B�'��
�c�*�*�*�*�*��
=�#�=�=�E��:�:�<�<�<�<�<�<�<�<�<�<��	�	�#�����=���0E�0G�0G�H�H�K��N���{�+�+�+��#�C�(�,�,�[�9�9�9��
?�#�?�?�E��<�<�>�>�>�>�>�>�>�>�>�>�
C�"�5�5�c�6�7�K�K�K�K�K�K�K�K���<�H��K�K�M�M�M�/�0F�G�G�G�H��|�C��N�)�)�+�6�6�6��0�0��k�B�B�B���!�
�
�
��|�+��N�)�)�+�6�6�6��0�0��k�B�B�B��(�(�*�*�*��
�����
=�#�=�=�E��:�:�<�<�<�<�<�<�<�<�<�<���
?�"�?�4I�4K�4K�L�L����"�"�;�/�/�/��'��,�0�0��=�=�=�#�<�<�E��9�9�;�;�;�;�;�;�;�;�;�;���%�%�k�2�2�2��,�,�S�+�>�>�>�����5�!�!�!����$�(�(��/�/�/��$��U�D�J�7�7�7s\�
B�D�
C�	C�' C�C�
C�C�C�C�C�D� D"�AI�AJ2c�(�	|j|}n#t$rYdSwxYw|j���}|r�|���\}}|���r^||z
|jkrD|j}|���|j	r!|j
s|j�|��nO|s|j|=|S|j}|���|j	r!|j
s|j�|��|��|j|=dSr~)
r��KeyErrorr`r��popr�r�rr�r�r�r�r�)rDrZr��t1r�r�rs       rEr�zBaseConnector._get=sA��	��K��$�E�E���	�	�	��4�4�	�����Z�_�_�
�
���	F��	�	���I�E�2��!�!�#�#�
F���7�T�4�4�4� %��I��K�K�M�M�M��z�J�$�*G�J��7�>�>�y�I�I�I�� �-� �K��,� �L�!�O�	����
�
�
��:�F�d�&C�F��3�:�:�9�E�E�E�%�	F�*
�K����ts�
�
�c�l�|jsdSt|j�����}tj|��|D]m}|�|��dkr�|j|}|rB|���}|���s|�d��dS|�B�ndS)z�
        Iterates over all waiters until one to be released is found.

        The one to be released is not finsihed and
        belongs to a host that has available connections.
        Nr)	r��list�keys�random�shuffler��popleft�done�
set_result)rD�queuesrZ�waiters�waiters     rErzBaseConnector._release_waiter\s����}�	��F��d�m�(�(�*�*�+�+����v�����		�		�C��*�*�3�/�/�!�3�3���m�C�(�G��
� ���*�*���{�{�}�}���%�%�d�+�+�+��F�F�	�
��		�		rGr�c���|jrdS	|j�|��|�||��|���dS#t
$rYdSwxYwr~)r�r�r�r�rr
)rDrZr�s   rE�_release_acquiredzBaseConnector._release_acquiredvs����<�	��F�	#��N�!�!�%�(�(�(��(�(��e�4�4�4�
� � �"�"�"�"�"���	�	�	�
�D�D�	���s�0A�
A�Aror[rpc��|jrdS|�||��|jrd}|s|jrI|j}|���|jr#|js|j�	|��dSdSdS|j
�|��}|�gx}|j
|<|�	||j�
��f��|j�(tj|d|j|j��|_dSdS)NTr�)r�rr�rprr�r�r�r�r�r�r�r`r�r�rr�r�)rDrZr[rprr�s      rErvzBaseConnector._release�s6���<�	��F����s�H�-�-�-���	 ��L��	�8�0�	� �*�I��N�N�����z�
B�$�"?�
B��/�6�6�y�A�A�A�A�A�
B�
B�
B�
B��K�O�O�C�(�(�E��}�+-�-����C�(��L�L�(�D�J�O�O�$5�$5�6�7�7�7��#�+�'.�'=��*�d�&=�t�z�(�(��$�$�$�,�+rGc��"K�t���r~)�NotImplementedError)rDr�r�r�s    rErz BaseConnector._create_connection�s����"�#�#�#rG)rAr4)NNNrQ)0rRrSrTr�r�rhr�r0r�objectr�r��intrr�r�rFrMrrPr�r�r�rr�r
r�r�r�r�r�r�r'r�r�r
r�r�r�r�rrXrr�rrrvrrVrGrEr4r4�s������
�
��G���!��
9A�!���&+�48�3�3�3�!���u�!4�5�3��	3�
�3��
3� $�3��w�0�1�3�
�3�3�3�3�j(0�3�3��3�D�3�3�3�3�0�����S��T���������
37�-1�15�	���4�
�.�/���M�*�� �
�.�	�

������!�T�!�!�!��X�!���s�����X���$��$�$�$��X�$�'�'�'�'�R	-�"�	-�)8�	-�	
�	-�	-�	-�	-�����&*�y���*�*�*�*�
#/�#/�#/�#/�J�������X���/��c�����BQ8�"�Q8�,0��M�Q8�DS�Q8�	�Q8�Q8�Q8�Q8�f���H�_�,E�����>����4
#�_�
#�_�
#�QU�
#�
#�
#�
#�(#����
��"��
��
�
����B$�"�$�,0��M�$�DS�$�	�$�$�$�$�$�$rGr4c��eZdZddeeddfd�Zdedefd�Zde	e
efdee
e
efddfd	�Zde	e
efddfd
�Zdd�Zde	e
efdee
e
effd�Zde	e
efdefd
�ZdS)�_DNSCacheTableN�ttlrAc�0�i|_i|_||_dSr~)�	_addrs_rr�_timestamps�_ttl)rDr!s  rErFz_DNSCacheTable.__init__�s��VX���9;�����	�	�	rG�hostc��||jvSr~)r#)rDr&s  rE�__contains__z_DNSCacheTable.__contains__�s���t�~�%�%rGrZ�addrsc��t|��t|��f|j|<|jrt	��|j|<dSdSr~)rr�r#r%r	r$)rDrZr)s   rEr�z_DNSCacheTable.add�sJ��$�U�|�|�S��Z�Z�8���s���9�	0�$-�K�K�D��S�!�!�!�	0�	0rGc��|j�|d��|jr|j�|d��dSdSr~)r#rr%r$�rDrZs  rEr�z_DNSCacheTable.remove�sM������3��%�%�%��9�	,��� � ��d�+�+�+�+�+�	,�	,rGc�j�|j���|j���dSr~)r#r�r$rKs rEr�z_DNSCacheTable.clear�s1������������� � � � � rGc�~�|j|\}}tt||����}t|��|Sr~)r#rr�next)rDrZr\�lengthr)s     rE�
next_addrsz_DNSCacheTable.next_addrs�s9���~�c�*���f��V�D�&�)�)�*�*���T�
�
�
��rGc�^�|j�dS|j||jzt��kSrC)r%r$r	r,s  rE�expiredz_DNSCacheTable.expired�s-���9���5����$�t�y�0�9�;�;�>�>rGr~rQ)rRrSrTrr�rFrr�r(rr�rrrrr�r�r�r1r3rVrGrEr r �s>��������H�U�O��t�����
&��&�D�&�&�&�&�0�u�S�#�X��0�t�D��c��N�/C�0��0�0�0�0�,�%��S��/�,�d�,�,�,�,�!�!�!�!��e�C��H�o��$�t�C��H�~�2F�����?�5��c��?�?�t�?�?�?�?�?�?rGr c ����eZdZdZdddddddddedddddd�d	ed
eededeed
edee	de
deee	fdeee
efdeede
deefdededededeejf�fd�Zdedf�fd�Zedefd���Zedefd���Z	d:dee
deeddfd�Z	d;de
ded eed!deee
effd"�Zd#d$d ed!d%d&defd'�Ze e!j"d��d(ede	fd)�����Z#d#d$dee	fd*�Z$d#d$ded+fd,�Z%e&d-�d.ed#d$d%d&d/e'e(d0edeej)effd1�Z*d<d2�Z+d=d3�Z,defd4�Z-d5ej)d#d$ddfd6�Z.e&fd5ej)d#d$d%d&d/e'e(deej/eff
d7�Z0e&d-�d#d$d ed!d%d&d/e'e(deej)eff
d8�Z1d#d$d ed!d%d&deej/effd9�Z2�xZ3S)>r5a/TCP connector.

    verify_ssl - Set to True to check ssl certifications.
    fingerprint - Pass the binary sha256
        digest of the expected certificate in DER format to verify
        that the certificate the server presents matches. See also
        https://en.wikipedia.org/wiki/Transport_Layer_Security#Certificate_pinning
    resolver - Enable DNS lookups and use this
        resolver
    use_dns_cache - Use memory cache for DNS lookups.
    ttl_dns_cache - Max seconds having cached a DNS entry, None forever.
    family - socket address family
    local_addr - local tuple of (host, port) to bind socket to

    keepalive_timeout - (optional) Keep-alive timeout.
    force_close - Set to True to force close and do reconnect
        after each request (and between redirects).
    limit - The total number of simultaneous connections.
    limit_per_host - Number of simultaneous connections to one host.
    enable_cleanup_closed - Enables clean-up closed ssl transports.
                            Disabled by default.
    loop - Optional event loop.
    TN�
rFr�)�
verify_ssl�fingerprint�
use_dns_cache�
ttl_dns_cache�family�ssl_context�ssl�
local_addr�resolverr�r�r�r�r�r\r6r7r8r9r:r;r<r=r>r�r�r�r�r�r\c�"��t���|
|||
||���t||||��|_|	�t	|j���}	|	|_||_t|���|_	i|_
||_||_dS)Nr�r�)r!)
�superrFr*�_sslr3r`�	_resolver�_use_dns_cacher �
_cached_hosts�_throttle_dns_events�_family�_local_addr)rDr6r7r8r9r:r;r<r=r>r�r�r�r�r�r\�	__class__s                �rErFzTCPConnector.__init__�s����&	�����/�#��)�"7��
	�	
�	
�	
�&�c�:�{�K�P�P��	���&�D�J�7�7�7�H�!���+���+�
�>�>�>���OQ��!����%����rGrAc���|j���D]}|����t�����S)zClose all ongoing DNS calls.)rEr�r�r@r�)rD�evrHs  �rEr�zTCPConnector.closesB����+�2�2�4�4�	�	�B��I�I�K�K�K�K��w�w�}�}���rGc��|jS)zSocket family like AF_INET.)rFrKs rEr:zTCPConnector.familys���|�rGc��|jS)z%True if local DNS caching is enabled.)rCrKs rEr8zTCPConnector.use_dns_caches
���"�"rGr&�portc��|� |�|j�||f��dS|�|�td���|j���dS)z8Remove specified host/port or clear all dns local cache.Nz5either both host and port or none of them are allowed)rDr�r�r�)rDr&rMs   rE�clear_dns_cachezTCPConnector.clear_dns_cache$se����� 0���%�%�t�T�l�3�3�3�3�3�
�
��!1��W�X�X�X���$�$�&�&�&�&�&rGr�r:c��|K�t|��r||||jddd�gS|jsn|r |D]}|�|���d{V���|j�|||j����d{V��}|r |D]}|�|���d{V���|S||f}||jvrX|j�|��s>|j�	|��}|r |D]}|�
|���d{V���|S||jvrK|j|}|r |D]}|�
|���d{V���|����d{V���nUt|j��|j|<|r |D]}|�|���d{V���	|r |D]}|�|���d{V���|j�|||j����d{V��}	|r |D]}|�|���d{V���|j�||	��|j|���n4#t$$r'}
|j|�|
����d}
~
wwxYw	|j�|��n#|j�|��wxYw|j�	|��S)Nr)�hostnamer&rMr:r��flags)r:)r�)r.rFrC�send_dns_resolvehost_startrB�resolve�send_dns_resolvehost_endrDr3r1�send_dns_cache_hitrE�waitr2r`�send_dns_cache_missr�r�r�r)rDr&rMr�r�resrZ�result�eventr)rs           rE�
_resolve_hostzTCPConnector._resolve_host/s���������
	�!%� � �"�l���
��	�	
��"�	��
A�#�A�A�E��:�:�4�@�@�@�@�@�@�@�@�@�@���.�.�t�T�$�,�.�O�O�O�O�O�O�O�O�C��
?�#�?�?�E��8�8��>�>�>�>�>�>�>�>�>�>��J��T�l���4�%�%�%��0B�0J�0J�3�0O�0O�%��'�2�2�3�7�7�F��
9�#�9�9�E��2�2�4�8�8�8�8�8�8�8�8�8�8��M��$�+�+�+��-�c�2�E��
9�#�9�9�E��2�2�4�8�8�8�8�8�8�8�8�8�8��*�*�,�,���������.@��
�-K�-K�D�%�c�*��
:�#�:�:�E��3�3�D�9�9�9�9�9�9�9�9�9�9�
3��E�!'�E�E��#�>�>�t�D�D�D�D�D�D�D�D�D�D�"�n�4�4�T�4���4�U�U�U�U�U�U�U�U���C�!'�C�C��#�<�<�T�B�B�B�B�B�B�B�B�B�B��"�&�&�s�E�2�2�2��)�#�.�2�2�4�4�4�4�� �
�
�
��)�#�.�2�2�q�2�9�9�9������	
����5��)�-�-�c�2�2�2�2���)�-�-�c�2�2�2�2�����!�,�,�S�1�1�1s+�B&H5�4J�5
I&�?"I!�!I&�&J�J!r�r(r�r8c��K�|jr!|�|||���d{V��\}}n |�|||���d{V��\}}|S)zcCreate connection.

        Has same keyword arguments as BaseEventLoop.create_connection.
        N)�proxy�_create_proxy_connection�_create_direct_connection)rDr�r�r��_r�s      rErzTCPConnector._create_connection{st�����9�	R�!�:�:�3���P�P�P�P�P�P�P�P�H�A�u�u�!�;�;�C���Q�Q�Q�Q�Q�Q�Q�Q�H�A�u��rG�verifiedc���|rtj��Stjtj��}|xjtjzc_|xjtjzc_d|_tj|_		|xjtj
zc_n>#t$r1}tj
d�|����Yd}~nd}~wwxYw|���|S)NFz�{!s}: The Python interpreter is compiled against OpenSSL < 1.0.0. Ref: https://docs.python.org/3/library/ssl.html#ssl.OP_NO_COMPRESSION)r<�create_default_context�
SSLContext�PROTOCOL_TLS_CLIENT�options�OP_NO_SSLv2�OP_NO_SSLv3�check_hostname�	CERT_NONE�verify_mode�OP_NO_COMPRESSION�AttributeErrorrMrN�format�set_default_verify_paths)rb�
sslcontext�attr_errs   rE�_make_ssl_contextzTCPConnector._make_ssl_context�s���	��-�/�/�/����(?�@�@�J����#�/�1������#�/�1���(-�J�%�%(�]�J�"�
��"�"�c�&;�;�"�"�"��!�
�
�
��
�-�.4�V�H�-=�-=�	������������
����
�/�/�1�1�1��s�B�
C�&'C�Cc�l�|���r�t�td���|j}t|tj��r|S|�|�d��S|j}t|tj��r|S|�|�d��S|�d��SdS)a*Logic to get the correct SSL context

        0. if req.ssl is false, return None

        1. if ssl_context is specified in req, use it
        2. if _ssl_context is specified in self, use it
        3. otherwise:
            1. if verify_ssl is not specified in req, use self.ssl_context
               (will generate a default context according to self.verify_ssl)
            2. if verify_ssl is True in req, generate a default SSL context
            3. if verify_ssl is False in req, generate a SSL context that
               won't verify
        NzSSL is not supported.FT)r�r<�RuntimeError�
isinstancerersrA)rDr�rqs   rE�_get_ssl_contextzTCPConnector._get_ssl_context�s����:�:�<�<�	��{�"�#:�;�;�;���J��*�c�n�5�5�
"�!�!��%��-�-�e�4�4�4���J��*�c�n�5�5�
"�!�!��%��-�-�e�4�4�4��)�)�$�/�/�/��4rGr)c�~�|j}t|t��r|S|j}t|t��r|SdSr~)r<rvr)rA)rDr��rets   rE�_get_fingerprintzTCPConnector._get_fingerprint�sC���g���c�;�'�'�	��J��i���c�;�'�'�	��J��trG��client_error�argsr|rxc���K�	t|j��4�d{V��|jj|i|���d{V��cddd���d{V��S#1�d{V��swxYwYdS#t$r}t|j|��|�d}~wt$r}t|j|��|�d}~wt$r9}|j
�t|tj
��r�||j|��|�d}~wwxYwr~)r,�sock_connectr`�create_connectionr%rr�r&r �OSError�errnorvr��TimeoutError)rDr�r�r|r}rxr�s       rE�_wrap_create_connectionz$TCPConnector._wrap_create_connection�s�����
	A�#�G�$8�9�9�
K�
K�
K�
K�
K�
K�
K�
K�9�T�Z�9�4�J�6�J�J�J�J�J�J�J�J�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K�
K����
K�
K�
K�
K�
K�
K���	T�	T�	T�1�#�2D�c�J�J�PS�S������	L�	L�	L�)�#�*<�c�B�B��K������	A�	A�	A��y� �Z��W�5I�%J�%J� ���,�s�1�3�7�7�S�@�����	A���sQ�A�A	�A�	
A�A�A�A�
C%�&A<�<
C%�	B�
C%�,4C � C%c��|���sdS|j}|�J�|jdkrdS|���dS)aWRaise a :py:exc:`RuntimeError` on missing ``start_tls()``.

        One case is that :py:meth:`asyncio.loop.start_tls` is not yet
        implemented under Python 3.6. It is necessary for TLS-in-TLS so
        that it is possible to send HTTPS queries through HTTPS proxies.

        This doesn't affect regular HTTP requests, though.
        N�https)r�r^�scheme�_check_loop_for_start_tls)rDr��	proxy_urls   rE�_fail_on_no_start_tlsz"TCPConnector._fail_on_no_start_tls�sW���z�z�|�|�	��F��I�	��$�$�$���w�&�&��F��&�&�(�(�(�(�(rGc�d�	|jjdS#t$r}td��|�d}~wwxYw)Na�An HTTPS request is being sent through an HTTPS proxy. This needs support for TLS in TLS but it is not implemented in your runtime for the stdlib asyncio.

Please upgrade to Python 3.7 or higher. For more details, please see:
* https://bugs.python.org/issue37179
* https://github.com/python/cpython/pull/28073
* https://docs.aiohttp.org/en/stable/client_advanced.html#proxy-support
* https://github.com/aio-libs/aiohttp/discussions/6044
)r`�	start_tlsrnru)rD�attr_excs  rEr�z&TCPConnector._check_loop_for_start_tls�sT��	��J� � � � ���	�	�	��	K����
�����	���s��
/�*�/c�R�	|���dS#t$rYdSwxYw)NTF)r�rurKs rE�_loop_supports_start_tlsz%TCPConnector._loop_supports_start_tlssD��	��*�*�,�,�,��4���	�	�	��5�5�	���s��
&�&�underlying_transportc��|jjjdkrdSt|dd��}|rdSt	jdt|d���dS)z6Issue a warning if the requested URL has HTTPS scheme.r�N�_start_tls_compatibleFaAn HTTPS request is being sent through an HTTPS proxy. This support for TLS in TLS is known to be disabled in the stdlib asyncio. This is why you'll probably see an error in the log below.

It is possible to enable it via monkeypatching under Python 3.7 or higher. For more details, see:
* https://bugs.python.org/issue37179
* https://github.com/python/cpython/pull/28073

You can temporarily patch this as follows:
* https://docs.aiohttp.org/en/stable/client_advanced.html#proxy-support
* https://github.com/aio-libs/aiohttp/discussions/6044
�)rnr|)�request_info�urlr��getattrrMrN�RuntimeWarning)rDr�r��asyncio_supports_tls_in_tlss    rE�_warn_about_tls_in_tlsz#TCPConnector._warn_about_tls_in_tls
s{�����&�'�1�1��F�&-� �#��'
�'
�#�'�	��F��
�

G�
���!	
�	
�	
�	
�	
�	
rGc��K�|���}ttj|�|����}	t|j��4�d{V��	|j�||||j	|j
����d{V��}n##t$r|����wxYw	ddd���d{V��n#1�d{V��swxYwY|�
|��n�#t$r}t|j|��|�d}~wt"$r}t%|j|��|�d}~wt&$r9}|j�t+|t,j��r�||j|��|�d}~wt0$r<}	t3d|j	�d|jd�d|j�d|jpd�d	|	�d
���|	�d}	~	wwxYw||fS)z$Wrap the raw TCP transport with TLS.N)�server_hostname�ssl_handshake_timeoutz2Cannot initialize a TLS-in-TLS connection to host �:�dz4 through an underlying connection to an HTTPS proxy z ssl:�defaultz [�])r�rr<rerwr,rr`r�r&�totalr�r��connection_mader%rr�r&r r�r�rvr�r��	TypeErrorrrMr^)
rDr�r�r�r|�	tls_protorq�
tls_transportr��type_errs
          rE�_start_tls_connectionz"TCPConnector._start_tls_connection/s������M�M�O�O�	��#�.�$�*?�*?��*D�*D�E�E�
�&	�#�G�$8�9�9�
�
�
�
�
�
�
�
�
�*.�*�*>�*>�,�!�"�(+��.5�m�+?�+�+�%�%�%�%�%�%�M�M��%����)�.�.�0�0�0������"�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
����
�
�
�
�F
�%�%��
�
�
�
��)�	T�	T�	T�1�#�2D�c�J�J�PS�S������	L�	L�	L�)�#�*<�c�B�B��K������	A�	A�	A��y� �Z��W�5I�%J�%J� ���,�s�1�3�7�7�S�@������
	�
	�
	�
(�"��8�"�"� #��N�"�"�%(�Y�"�"�7:�w�7K�)�"�"��"�"�"���
�
�����
	���� �i�'�'sx�C.�C�!/B�C� B1�1C�5C.�
C�C.�C�C.�.
F;�8D�
F;�D1�1
F;�>4E2�2
F;�?7F6�6F;c��K�|�|��}|�|��}|jj}|�J�|j}|�J�tj|�|||���|j���}		tj	|	���d{V��}
nr#t
j
$rdd�}|	�|���t$r=}|j
�t|t
j��r�t!|j|��|�d}~wwxYwd}
|
D]�}|d}|d}	|�|j|||||d	|d
|d|r|dnd|j||�
���d{V��\}}n#t $r}|}
Yd}~�ud}~wwxYw|���rg|re	|�|��nN#t.$rA}|���|js|j�|��|}
Yd}~��d}~wwxYw||fcS|
�J�|
�)N)r�r�r�$asyncio.Future[List[Dict[str, Any]]]rAc��tttj��5|���ddd��dS#1swxYwYdSr~)rr�r��CancelledErrorrZ)rs rE�drop_exceptionz>TCPConnector._create_direct_connection.<locals>.drop_exception�s����i��)?�@�@�!�!��J�J�L�L�L�!�!�!�!�!�!�!�!�!�!�!�!����!�!�!�!�!�!s�A�A�	Ar&rMr:r�rRrQ)	r�r<r:r�rRr�r=r�r|)rr�rAN)rwrzr��raw_hostrMr��
ensure_futurer\r`�shieldr��add_done_callbackr�r�rvr�rr�r�r�rGr��checkr#r�r�r�r�)rDr�r�r�r|rqr7r&rM�
host_resolved�hostsr�r��last_exc�hinfo�transpr�s                 rEr`z&TCPConnector._create_direct_connectionjs������*�*�3�/�/�
��+�+�C�0�0���w��������x�������-����t�T�&��9�9��
�
�
�
�
�	I�"�.��7�7�7�7�7�7�7�7�E�E���%�	�	�	�
!�
!�
!�
!�
�+�+�N�;�;�;���	I�	I�	I��y� �Z��W�5I�%J�%J� ��'�s�'9�3�?�?�S�H�����	I����)-���$	�$	�E���=�D���=�D�
�&*�&B�&B��M���#�"� ��?���.���.�9C�$M�E�*�$5�$5��#�/��!-�'C�
'�
'�
!�
!�
!�
!�
!�
!�
�����(�
�
�
������������
�����z�z�|�|�
��
���%�%�f�-�-�-�-��0�����L�L�N�N�N��8�G��7�>�>�v�F�F�F�"�H��H�H�H�H����������5�=� � � ��'�'�'��NsI�:B�2D�8C?�?D�AE/�/
F�9F�F�F5�5
H�?7G;�;Hc���K�|�|��|���}i}|j�|j}|jtj|tj<|j}|�J�ttj|||j	|j
|j���}|�|g|t����d{V��\}}	|	���|j�tjd��}
|
�=|���s|
|jtj<n|
|jtj<|����r�|r|�||��tj|_|j|_t/j|jddd���}t5|||	|j
��}|�|���d{V��}
	|j}|�J�|�|���|
�|���d{V��}d|_d|_	|j dkrI|j!}|�tD|j d}tG|
j$|j%|j ||j����|s<|�&dd�	��}|�tOd
���|�(��}n##tR$r|�*���wxYw|s|�*��n#|s|�*��wwxYw|sU|�+|��}|�,|j-||||j.|����d{V��	|
�*��S|�/|||����d{V��	|
�*��S#tR$r*|
�*��|�*���wxYw#|
�*��wxYw||	fS)
N)�headers�authr\r<r{)r^�
proxy_auth�proxy_headers_hash)�read_until_eof��r)�statusrrr��socket)r�z)Transport does not expose socket instance)r�r<�sockr�r�)r�r�)0r�r��
proxy_headersr�r�HOSTr^r(�METH_GETr�r`r<r`r"r�r�
AUTHORIZATIONr��PROXY_AUTHORIZATIONr��METH_CONNECT�methodr��attr�evolver�rX�sendra�set_response_params�startr�r��reasonr1r!r��history�get_extra_inforu�dupr�r�rwr�r�r&r�)rDr�r�r��runtime_has_start_tlsr�r��	proxy_reqrr�r�rZ�conn�
proxy_respr[�resprr�rawsockrqs                   rEr_z%TCPConnector._create_proxy_connection�s�����	
�"�"�3�'�'�'� $� =� =� ?� ?��"$����(��'�G� �[���3���	���i������!��M���������

�
�
�	�"&�!?�!?��r�7�1K�"@�"
�"
�
�
�
�
�
�
��	�5�	������� �$�$�T�%7��>�>�����:�:�<�<�
C�8<���D�4�5�5�>B�	�!�$�":�;��:�:�<�<�V	#�$�
<��+�+�I�s�;�;�;� $�0�I���G�I�M��+��"�$�4�TX����C��d�C���
�;�;�D�(�~�~�d�3�3�3�3�3�3�3�3�J�B
#��>���+�+�+�
�,�,�<Q�,�R�R�R�'�-�-�d�3�3�3�3�3�3�3�3��"&���"&���*��{�c�)�)�"&�+��"�?�&/���&<�Q�&?�G�2�&�3� �L�#'�;�$+�$(�L�����1�0�"+�":�":�8�T�":�"R�"R��"�?�".� K�#�#��#*�+�+�-�-����$�����O�O�%�%�%������1�*�!���)�)�)���1�*�!���)�)�)�)�*����-�
�!%�!6�!6�s�!;�!;�J�!%�!=�!=��
� '�&�$�(+���
">�"�"��������"� � �"�"�"�"�"�7�7���#�8����������� � �"�"�"�"��s!�
�
�
�� � �"�"�"��
�
�����
�����r� � �"�"�"�"�����%��sP�<N�O�BJ0�/K*�0 K�K*�O�*L�AO�O�4O�O�O)NNr~)r�r(rANrQ)4rRrSrTr�r0r�r�bytesrrerr)rr�rr�rr�r�rFr
r�r�r:r8rOrrrr\r'r�staticmethodr��	lru_cachersrwrzrrr�r�r�r�r�r�r��
BaseTransportr�r`r_�
__classcell__�rHs@rEr5r5�sV���������6 �'+�"�')��,0�:>�04�/3�8@�!���&+�48�#%&�%&�%&��%&��e�_�	%&�
�%&� ��}�
%&��%&��j�)�%&��4��{�J�6�
7�%&��U�3��8�_�-�%&��+�,�%&�!��u�f�!4�5�%&��%&��%&��%&�  $�!%&�"�w�0�1�#%&�%&�%&�%&�%&�%&�N�y����������������X���#�t�#�#�#��X�#�
AE�	'�	'��S�M�	'�08��
�	'�	
�	'�	'�	'�	'�GK�J2�J2��J2�"�J2�,4�T�'�]�,C�J2�	
�d�3��8�n�	�J2�J2�J2�J2�X�"��,0��M��DS��	�������Y������D��Z�������\��*�O����8L�����B�O����8O�����)=�A�A�A��A��A�!�	A�
�9�o�A��
A�
�w� �/�1�	2�A�A�A�A�()�)�)�)�&����"�$�����#
�%�/�#
��#
�
�	#
�#
�#
�#
�T)=�9(�9(�%�/�9(��9(�!�	9(�
�9�o�9(�
�w�$�o�5�	6�
9(�9(�9(�9(�B)=�
L�L�L�
�L��W�
�L�!�	L��9�o�
L�
�w� �/�1�	2�L�L�L�L�\ �"� �,0��M� �DS� �	�w�$�o�5�	6� � � � � � � � rGr5c���eZdZdZdedddfdededeee	dfd	e
d
e
deej
ddf�fd
�
Zedefd���Zdddeddddefd�Z�xZS)r6a�Unix socket connector.

    path - Unix socket path.
    keepalive_timeout - (optional) Keep-alive timeout.
    force_close - Set to True to force close and do reconnect
        after each request (and between redirects).
    limit - The total number of simultaneous connections.
    limit_per_host - Number of simultaneous connections to one host.
    loop - Optional event loop.
    Fr�rN�pathr�r�r�r�r\rAc�b��t���|||||���||_dS)N�r�r�r�r�r\)r@rF�_path�rDr�r�r�r�r�r\rHs       �rErFzUnixConnector.__init__FsB���	�����#�/��)��	�	
�	
�	
���
�
�
rGc��|jS)zPath to unix socket.�r�rKs rEr�zUnixConnector.pathX����z�rGr�r(r�r:r�r8c��K�	t|j��4�d{V��|j�|j|j���d{V��\}}ddd���d{V��n#1�d{V��swxYwYnP#t$rC}|j�t|tj
��r�t|j|j
|��|�d}~wwxYwtt|��Sr~)r,rr`�create_unix_connectionr�r�r�r�rvr�r�r$r�r�rr'�rDr�r�r�rar�r�s       rErz UnixConnector._create_connection]s}����	X�#�G�$8�9�9�
�
�
�
�
�
�
�
�!%��!B�!B��M�4�:�"�"���������5�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
����
�
�
�
����	X�	X�	X��y� �Z��W�5I�%J�%J� ��*�4�9�c�6H�#�N�N�TW�W�����	X����
�O�U�+�+�+s:�A1�/A�
A1�
A)�)A1�,A)�-A1�1
B>�;>B9�9B>�rRrSrTr�r0r�r�rrr�rrr�r�rFr�r�rr'rr�r�s@rEr6r6:s�������	�	�"�8@���48�������!����!4�5�	�
���
��w�0�1��
�������$��c�����X��
,�"�
,�,0��M�
,�DS�
,�	�
,�
,�
,�
,�
,�
,�
,�
,rGr6c���eZdZdZdedddfdededeee	dfd	e
d
e
deej
ddf�fd
�
Zedefd���Zdddeddddefd�Z�xZS)r7aNamed pipe connector.

    Only supported by the proactor event loop.
    See also: https://docs.python.org/3.7/library/asyncio-eventloop.html

    path - Windows named pipe path.
    keepalive_timeout - (optional) Keep-alive timeout.
    force_close - Set to True to force close and do reconnect
        after each request (and between redirects).
    limit - The total number of simultaneous connections.
    limit_per_host - Number of simultaneous connections to one host.
    loop - Optional event loop.
    Fr�rNr�r�r�r�r�r\rAc���t���|||||���t|jtj��st
d���||_dS)Nr�z9Named Pipes only available in proactor loop under windows)r@rFrvr`r��ProactorEventLooprur�r�s       �rErFzNamedPipeConnector.__init__|sw���	�����#�/��)��	�	
�	
�	
���J��1�
�
�	��N���
���
�
�
rGc��|jS)zPath to the named pipe.r�rKs rEr�zNamedPipeConnector.path�r�rGr�r(r�r:r�r8c���K�	t|j��4�d{V��|j�|j|j���d{V��\}}t
jd���d{V��ddd���d{V��n#1�d{V��swxYwYnJ#t$r=}|j	�t|tj��r�t|j
|��|�d}~wwxYwtt|��S)Nr)r,rr`�create_pipe_connectionr�r�r��sleepr�r�rvr�rr�rr'r�s       rErz%NamedPipeConnector._create_connection�s�����	I�#�G�$8�9�9�
'�
'�
'�
'�
'�
'�
'�
'�!%��!B�!B��M�4�:�"�"���������5��m�A�&�&�&�&�&�&�&�&�&�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'�
'����
'�
'�
'�
'����	I�	I�	I��y� �Z��W�5I�%J�%J� ��&�s�'9�3�?�?�S�H�����	I����
�O�U�+�+�+s;�B�A	A9�'B�9
B�B�B�B�
C�8C
�
Cr�r�s@rEr7r7ms���������""�8@���48�������!����!4�5�	�
���
��w�0�1��
�������0��c�����X��,�"�,�,0��M�,�DS�,�	�,�,�,�,�,�,�,�,rGr7)Xr�r�rrfrdrM�collectionsrr�
contextlibr�http.cookiesr�	itertoolsrrr�r	�typesr
�typingrrr
rrrrrrrrrrrr��rr�abcr�client_exceptionsrrrr r!r"r#r$r%r&�client_protor'�
client_reqrepr(r)r*r+r,r-r.r/r0�httpr1�locksr2r>r3r<re�ImportErrorr�__all__�clientr8r9�tracingr:r<rXr�r4r r5r6r7rVrGrE�<module>rs�����������
�
�
�
�
�
�
�
���������*�*�*�*�*�*�*�*�������%�%�%�%�%�%�#�#�#�#�#�#�#�#���������������������������������������������"������������!�!�!�!�!�!�������������������������*�)�)�)�)�)�H�H�H�H�H�H�H�H�H�H�����������������������%�%�%�%�%�%�%�%�%�%�%�%���J�J�J���J�J������
�C��J�J�J�����
S����%�%�%�%�%�%�,�,�,�,�,�,���������������(WK�WK�WK�WK�WK�WK�WK�WK�t
�
�
�
�
�
�
�
�f$�f$�f$�f$�f$�f$�f$�f$�R$?�$?�$?�$?�$?�$?�$?�$?�Nd	 �d	 �d	 �d	 �d	 �=�d	 �d	 �d	 �N0,�0,�0,�0,�0,�M�0,�0,�0,�f@,�@,�@,�@,�@,��@,�@,�@,�@,�@,s�>C
�
	C�C

Zerion Mini Shell 1.0