Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /opt/hc_python/lib64/python3.12/site-packages/urllib3/http2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/hc_python/lib64/python3.12/site-packages/urllib3/http2/__pycache__/probe.cpython-312.pyc
�

���g����ddlmZddlZGd�d�Ze�Zej
ZejZejZejZddgZ	y)�)�annotationsNc�H�eZdZdZdd�Zd	d�Z								d
d�Zdd�Zdd�Zy)�_HTTP2ProbeCache��_lock�_cache_locks�
_cache_valuesc�R�tj�|_i|_i|_y�N)�	threading�Lockrrr	��selfs �B/opt/hc_python/lib/python3.12/site-packages/urllib3/http2/probe.py�__init__z_HTTP2ProbeCache.__init__
s ���^�^�%��
�DF���AC���c���d}|j5||f}	|j|}|�|cddd�S	ddd�|j
}|j
�	|j|}|S#t$r3tj�|j
|<d|j|<Y�twxYw#1swY�yxYw#t$r(}t|t�rJ�|j��d}~wwxYwr)
rr	�KeyErrorr�RLockr�acquire�
BaseException�
isinstance�release)r�host�port�value�key�key_lock�es       r�acquire_and_getz _HTTP2ProbeCache.acquire_and_gets�����
�Z�Z���,�C�
/��*�*�3�/���$� �
�Z�
%���$�$�S�)������		��&�&�s�+�E����)�
/�)2���):��!�!�#�&�*.��"�"�3�'�
/���Z��,�	�!�!�X�.�.�.�������	�sE�B*�A+�B*�B6�+9B'�$B*�&B'�'B*�*B3�6	C'�?#C"�"C'c���||f}|j|}|5|�|j|�td��ddd�||j|<|j�y#1swY�)xYw)Nz@Cannot reset HTTP/2 support for origin after value has been set.)rr	�
ValueErrorr)rrr�supports_http2rrs      r�set_and_releasez _HTTP2ProbeCache.set_and_release3sq���T�l���$�$�S�)��
��%�$�*<�*<�S�*A�*M� �V����#1����3�������X�s�A�A$c��|j5|jj�D��cic]\}}||��
c}}cddd�Scc}}w#1swYyxYw)zUThis function is for testing purposes only. Gets the current state of the probe cacheN)rr	�items)r�k�vs   r�_valuesz_HTTP2ProbeCache._valuesAsF��
�Z�Z�%)�%7�%7�%=�%=�%?�@�%?�T�Q��A�q�D�%?�@��Z��@��Z�s�A�
A�A�A�Ac�b�|j5i|_i|_ddd�y#1swYyxYw)zBThis function is for testing purposes only. Reset the cache valuesNrrs r�_resetz_HTTP2ProbeCache._resetFs#��
�Z�Z� "�D��!#�D���Z�Z�s�%�.N)�return�None)r�strr�intr,�bool | None)rr.rr/r#r0r,r-)r,z"dict[tuple[str, int], bool | None])	�__name__�
__module__�__qualname__�	__slots__rr r$r)r+�rrrrsE���I�D�
�B���"��4?��	
��A�
$rrr$r )
�
__future__rrr�_HTTP2_PROBE_CACHEr$r r)r+�__all__r5rr�<module>r9s^��"��D$�D$�N&�'��$�4�4��$�4�4��
�
$�
$��	�	"�	"�����r

ZeroDay Forums Mini