[Twisted-Python] Bug in reactor.iterate()?

Itamar Shtull-Trauring itamar at itamarst.org
Mon Apr 26 11:42:18 EDT 2004


On Mon, 2004-04-26 at 00:27, Sam Couter wrote:

> The callbacks are never called while iterate() runs, but are called if
> iterate() is replaced with run(), or if run() is called after iterate().

The threadpool used by the database is never initialized if you don't
use run(). I suggest you look at twisted.test.test_enterprise and see
how it deals with initializing and stopping the db in tests (or just use
reactor.run() wiith reactor.crash(), though you'll still need to stop
the threadpool manually).

-- 
Itamar Shtull-Trauring    http://itamarst.org
Looking for a job -- http://itamarst.org/resume.html





More information about the Twisted-Python mailing list