404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.129.71.42: ~ $
3

�P\��@s>dZddlZddlZddljZddlmZGdd�de�Z	dS)z*Module containing the SessionThread class.�N�)�queuec@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�
SessionThreadcCs$||_||_|j�||_||_dS)N)�_session�_jobs�_create_worker�
_responses�_exceptions)�selfZinitialized_sessionZ	job_queueZresponse_queueZexception_queue�r�/usr/lib/python3.6/thread.py�__init__s
zSessionThread.__init__cCs4tj|jtj�d�|_d|j_d|j_|jj�dS)N)�target�nameTr)	�	threadingZThread�
_make_request�uuidZuuid4�_workerZdaemonZ_state�start)r
rrrrszSessionThread._create_workercCsnz\y|jjf|�}Wn4tjk
rH}z|jj||f�WYdd}~XnX|jj||f�Wd|jj�XdS)N)	rZrequest�excZRequestExceptionr	ZputrrZ	task_done)r
�kwargsZresponse�errr�_handle_requests"zSessionThread._handle_requestcCs<x6y|jj�}Wntjk
r(PYnX|j|�qWdS)N)rZ
get_nowaitrZEmptyr)r
rrrrr&szSessionThread._make_requestcCs
|jj�S)z*Proxy to the thread's ``is_alive`` method.)r�is_alive)r
rrrr/szSessionThread.is_alivecCs|jj�dS)z&Join this thread to the master thread.N)r�join)r
rrrr3szSessionThread.joinN)	�__name__�
__module__�__qualname__r
rrrrrrrrrr
s	
	r)
�__doc__rrZrequests.exceptions�
exceptionsrZ_compatr�objectrrrrr�<module>s



Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 3.28 KB 0644
__init__.cpython-36.pyc File 3.28 KB 0644
pool.cpython-36.opt-1.pyc File 6.69 KB 0644
pool.cpython-36.pyc File 6.69 KB 0644
thread.cpython-36.opt-1.pyc File 1.87 KB 0644
thread.cpython-36.pyc File 1.87 KB 0644