| Server IP : 46.62.235.243 / Your IP : 216.73.216.163 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 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 : |
�
oj� � � � d Z ddlZddlmZmZ ddlmZmZ G d� dej � Z e
dk( r\ ej ej d � j � dd lmZ ej e � � ej � yy)
z�
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_producer} to test
that process transports implement IProducer properly.
� N)�protocol�stdio)�log�reflectc �, � e Zd ZdZdZd� Zd� Zd� Zd� Zy)�
ProducerChildF� c �v � t j d� t j dt j � y )Nz*****OVER*****� )r �msg�reactor� callLater�stop)�self�reasons �B/usr/lib/python3/dist-packages/twisted/test/stdio_test_producer.py�connectionLostzProducerChild.connectionLost s# � ���� �!����!�W�\�\�*r c � � | xj |z
c_ | j rSt j t j
� t j d� | j j � y | j j |� | j j d� r| j j � y | j � y )Nz$dataReceived while transport paused!s
0
)�buf�_pausedr �startLogging�sys�stderrr � transport�loseConnection�write�endswith�pause)r �datas r �dataReceivedzProducerChild.dataReceived s� � ����D����<�<����S�Z�Z�(��G�G�:�;��N�N�)�)�+��N�N� � ��&��x�x� � ��*����-�-�/��
�
�r c � � d| _ | j j � t j d| j
� y )NTg{�G�z�?)r r �pauseProducingr
r �unpause�r s r r zProducerChild.pause'