| Server IP : 159.223.102.202 / Your IP : 216.73.217.92 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 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 : |
�
M��e� � �� � d Z ddlZddlmZ ddlmZmZ ddlmZ ddl m
Z
mZ ee� G d� dej � � Z
ed k( r� ej ej d
� j# � e
j$ eej d d� � dd
lmZ e
� Z ej, e� ej. � ej0 ej2 � 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 �, � e Zd ZdZdZd� 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 �: � | j j d� 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| _ t j � y)zv
This is the desired event. Once it has happened, stop the reactor so
the process will exit.
r N)�exitCode�reactor�stopr s r �readConnectionLostz$HalfCloseProtocol.readConnectionLost&