[Twisted-Python] cReactor fixes
Andrew Bennetts
andrew-twisted at puzzling.org
Sun Jan 5 18:19:12 EST 2003
On Sun, Jan 05, 2003 at 02:34:10PM -0800, Brian Warner wrote:
> Another possibility which might be easier to implement would be to enforce
> the no-restart restriction, but also create IReactorCore.reset(), and
> declare that it will return the reactor to the state it had at boot time,
> allowing .run() to be called on it once again. This method would also
> remove all DelayedCall events, remove any TCP/UDP sockets or listening
> ports, delete any systemEventTriggers that were added, and generally get
> rid of any other state which might have accumulated since startup. We
> could have the test suite use this to reset the reactor just after each
> test.
+1
-Andrew.
More information about the Twisted-Python
mailing list