Your IP : 3.149.239.70


Current Path : /opt/hc_python/share/doc/pycurl/examples/__pycache__/
Upload File :
Current File : //opt/hc_python/share/doc/pycurl/examples/__pycache__/retriever-multi.cpython-38.pyc

U

hf
�@s�ddlZddlZzddlZddlmZmZWnek
r@YnXe�ee�dZzLejddkrnej�	�Z
neejd��	�Z
eej�dkr�e
ejd�ZWn"edejd�e�YnXgZe
D]<Ze��Zer�edd	kr�q�d
ee�dZe�eef�q�e�std��ee�Zeee�Zdek�r@dk�sJntd
��edejejf�ededed�e��Zge_ee�D]fZe��Z de _!e �"ej#d�e �"ej$d�e �"ej%d�e �"ej&d�e �"ej'd�ej�e ��q�ejdd�Z(dZ)e)ek�rde�rne(�rne�*d�\ZZe(�*�Z eed�e _!e �"ej+e�e �"ej,e j!�e�-e �ee _ee _�qe�.�\Z/Z0e/ej1k�rn�q��qne�2�\Z3Z4Z5e4D]DZ e j!�6�de _!e�7e �ede je je �8ej9��e(�e ��q�e5D]D\Z Z:Z;e j!�6�de _!e�7e �ede je je:e;�e(�e ��q�e)ee4�ee5�Z)e3dk�r��qV�q�e�<d��q�ejD]*Z e j!dk	�r�e j!�6�de _!e �6��qje�6�dS)�N)�SIGPIPE�SIG_IGN�
��-��zCUsage: %s <file with URLs to fetch> [<# of concurrent connections>]�#zdoc_%03d.datz
no URLs giveni'z(invalid number of concurrent connectionsz!PycURL %s (compiled against 0x%x)z
----- Gettingz
URLs usingzconnections -----��i,�wbzSuccess:zFailed: g�?)=�sysZpycurl�signalrr�ImportErrorZnum_conn�argv�stdin�	readlines�urls�open�len�int�print�
SystemExit�queue�url�strip�filename�append�AssertionErrorZnum_urls�min�versionZCOMPILE_LIBCURL_VERSION_NUMZ	CurlMulti�mZhandles�range�iZCurl�c�fpZsetoptZFOLLOWLOCATIONZ	MAXREDIRSZCONNECTTIMEOUT�TIMEOUTZNOSIGNALZfreelistZ
num_processed�pop�URLZ	WRITEDATAZ
add_handleZperform�retZnum_handlesZE_CALL_MULTI_PERFORMZ	info_readZnum_qZok_listZerr_list�closeZ
remove_handle�getinfoZ
EFFECTIVE_URL�errno�errmsg�select�r/r/�b/opt/hc_python/lib64/python3.8/site-packages/../../../share/doc/pycurl/examples/retriever-multi.py�<module>
s�

"











?>