Your IP : 3.136.18.192
U
hf] �
@ s� d dl Z d dlZd dlZG dd� de�Zdd� Ze �� Ze�ej d� de_
e�ejdd� � ze�� W nN e j
k
r� Z z.ejd e jkr�ej
r�eej
� nee� W 5 dZ[X Y nX dS ) � Nc @ s e Zd ZdS )�ConnectionRejectedN)�__name__�
__module__�__qualname__� r r �f/opt/hc_python/lib64/python3.8/site-packages/../../../share/doc/pycurl/examples/opensocketexception.pyr s r c C sL t � � dk rtd�| _tjS |\}}}}t�|||�}|�tjtjd� |S )Ng �?z3Rejecting connection attempt in opensocket callback� ) �randomr � exception�pycurlZ
SOCKET_BAD�socket�
setsockopt�
SOL_SOCKET�SO_KEEPALIVE)Zcurl�purposeZcurl_address�family�socktype�protocol�address�sr r r �
opensocket s
r zhttp://pycurl.ioc C s t t| |�S )N)r �c)r r r r r �<lambda> � r )r r r � Exceptionr r ZCurlr Zsetopt�URLr
ZOPENSOCKETFUNCTIONZperform�error�e�argsZE_COULDNT_CONNECT�printr r r r �<module> s
�