Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/urllib3/util/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/urllib3/util/__pycache__/wait.cpython-310.pyc
o

�~�`�@s�ddlZddlZddlZddlmZzddlmZWney)ddlmZYnwgd�ZGdd�de	�Z
ejdkr@d	d
�Zndd
�Zdd
d�Z
ddd�Zdd�Zdd�Zdd�addd�Zddd�ZdS)�N)�partial)�	monotonic)�time)�NoWayToWaitForSocketError�
wait_for_read�wait_for_writec@seZdZdS)rN)�__name__�
__module__�__qualname__�rr�3/usr/lib/python3/dist-packages/urllib3/util/wait.pyrsr)��cCs||�S�Nr)�fn�timeoutrrr�_retry_on_intr*�rc
Cs�|dur	td�}nt�|}	z||�WSttjfyE}z"|jdtjkr(�|t�}|dkr3d}|td�kr;d}WYd}~qd}~ww)N�infTr)�floatr�OSError�select�error�args�errno�EINTR)rr�deadline�errrr0s"



��Fc
Csd|s|std��g}g}|r|�|�|r|�|�ttj|||�}t||�\}}}	t|p0|p0|	�S)N�2must specify at least one of read=True, write=True)�RuntimeError�appendrrr�bool)
�sock�read�writer�rcheck�wcheckr�rready�wready�xreadyrrr�select_wait_for_socketGs

r*cs^|s|std��d}|r|tjO}|r|tjO}t�����||��fdd�}tt||��S)Nrrcs|dur|d9}��|�S)Ni�)�poll)�t��poll_objrr�do_pollfs
z%poll_wait_for_socket.<locals>.do_poll)rr�POLLIN�POLLOUTr+�registerr!r)r"r#r$r�maskr/rr-r�poll_wait_for_socketZs

r4cOstd��)Nzno select-equivalent available)r�r�kwargsrrr�null_wait_for_socketnrr7c	Cs4z
t��}t|jd�WdSttfyYdSw)NrFT)rr+r�AttributeErrorrr-rrr�_have_working_pollrs��r9cOs.t�rtan
ttd�rtantat|i|��S)Nr)r9r4�wait_for_socket�hasattrrr*r7r5rrrr:s
r:cC�t|d|d�S)z�Waits for reading to be available on a given socket.
    Returns True if the socket is readable, or False if the timeout expired.
    T)r#r�r:�r"rrrrr��rcCr<)z�Waits for writing to be available on a given socket.
    Returns True if the socket is readable, or False if the timeout expired.
    T)r$rr=r>rrrr�r?r)FFNr)rr�sys�	functoolsrrr�ImportError�__all__�	Exceptionr�version_inforr*r4r7r9r:rrrrrr�<module>s*�






Spamworldpro Mini