[Twisted-Python] flow testThreaded thingy

Wari Wahab wari at home.wari.org
Fri Jun 27 02:50:16 MDT 2003


cce CVS wrote:

>Modified files:
>Twisted/twisted/flow/threads.py 1.3 1.4
>  
>
It seems that flows testing can pass 1% of the time and most of the 
time, it'll stop on testThreaded, as seen in the screen dump below:

    testProtocol 
...                                                       [OK]
    testProtocolLocalhost 
...                                              [OK]
    testThreaded 
...                                                       [OK]
    testThreadedSleep 
...                                                  [OK]
    testThreadedYield 
...                                                  [OK]
    testZip 
...                                                            [OK]
    testZipFailure 
...                                                     [OK]

-------------------------------------------------------------------------------
Ran 26 tests in 2.927s

OK
[wari at sync wari]$ trial -v twisted.test.test_flow
twisted.test.test_flow
  FlowTest
    testBasic 
...                                                          [OK]
[..snip..]
    testProtocolLocalhost 
...                                              [OK]
    testThreaded ...

 From here, I tried doing strace on the process and just got this:
gettimeofday({1056703375, 307699}, NULL) = 0
select(8, [4 7], [], [], {0, 0})        = 0 (Timeout)
gettimeofday({1056703375, 308951}, NULL) = 0
select(8, [4 7], [], [], {0, 0})        = 0 (Timeout)
gettimeofday({1056703375, 310242}, NULL) = 0
select(8, [4 7], [], [], {0, 0})        = 0 (Timeout)
gettimeofday({1056703375, 311093}, NULL) = 0
select(8, [4 7], [], [], {0, 0})        = 0 (Timeout)
gettimeofday({1056703375, 311504}, NULL) = 0
select(8, [4 7], [], [], {0, 0})        = 0 (Timeout)
gettimeofday({1056703375, 312164}, NULL) = 0
select(8, [4 7], [], [], {0, 0})        = 0 (Timeout)
gettimeofday({1056703375, 312646}, NULL) = 0
select(8, [4 7], [], [], {0, 0})        = 0 (Timeout)
gettimeofday({1056703375, 313504}, NULL) = 0
select(8, [4 7], [], [], {0, 0})        = 0 (Timeout)
gettimeofday({1056703375, 313888}, NULL) = 0
select(8, [4 7], [], [], {0, 0} <unfinished ...>
[wari at sync wari]$

Infinitely, of course.. Have not really gone thru the code at all, but 
anyway, my machine specs are the typical ones you get from 
johncompanies.com, Redhat 8.0, python 2.2.1, dual CPU and 2GB of RAM.





More information about the Twisted-Python mailing list