[Checkins] SVN: zc.async/branches/patrick-twisted/src/zc/async/twisted.txt Make test repeatable and avoid leaking file descriptors.
Patrick Strawderman
patrick at zope.com
Mon Dec 21 17:21:33 EST 2009
Log message for revision 106838:
Make test repeatable and avoid leaking file descriptors.
Changed:
U zc.async/branches/patrick-twisted/src/zc/async/twisted.txt
-=-
Modified: zc.async/branches/patrick-twisted/src/zc/async/twisted.txt
===================================================================
--- zc.async/branches/patrick-twisted/src/zc/async/twisted.txt 2009-12-21 21:35:21 UTC (rev 106837)
+++ zc.async/branches/patrick-twisted/src/zc/async/twisted.txt 2009-12-21 22:21:33 UTC (rev 106838)
@@ -41,3 +41,17 @@
>>> import zc.async.testing
>>> zc.async.testing.wait_for_result(j)
42
+
+Clean Up
+========
+
+We do the following to avoid leaking file descriptors
+(see http://twistedmatrix.com/trac/ticket/3063).
+
+ >>> twisted.internet.reactor.removeReader(twisted.internet.reactor.waker)
+ >>> twisted.internet.reactor.waker.connectionLost(None)
+
+And we instantiate a new reactor because the Twisted reactors don't
+run correctly after being stopped.
+
+ >>> twisted.internet.reactor = twisted.internet.reactor.__class__()
More information about the checkins
mailing list