| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/test/ |
Upload File : |
ó
[³XMc @ s d Z d d l Z d d l m Z d d l m Z d d l m Z m Z d d l m
Z
m Z d e j f d „ ƒ YZ
e d k rý e
j e j d
ƒ j ƒ e j e e j d d ƒ ƒ d d
l m Z e
ƒ Z e j e ƒ e j ƒ e j e j ƒ n d S( sÏ
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTestCase.test_readConnectionLost}
to test that IHalfCloseableProtocol.readConnectionLost works for process
transports.
iÿÿÿÿN( t
implements( t IHalfCloseableProtocol( t stdiot protocol( t reflectt logt HalfCloseProtocolc B s9 e Z d Z e e ƒ d Z d „ Z d „ Z d „ Z RS( sÎ
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.
c C s | j j d ƒ d S( s=
Signal the parent process that we're ready.
t xN( t transportt write( t self( ( sE /usr/lib/python2.7/dist-packages/twisted/test/stdio_test_halfclose.pyt connectionMade s c C s d | _ t j ƒ d S( sv
This is the desired event. Once it has happened, stop the reactor so
the process will exit.
i N( t exitCodet reactort stop( R
( ( sE /usr/lib/python2.7/dist-packages/twisted/test/stdio_test_halfclose.pyt readConnectionLost&