[Twisted-web] Reactor failure in current Twisted SVN
en.karpachov at ospaz.ru
en.karpachov at ospaz.ru
Sun Jun 19 07:59:26 MDT 2005
On Sat, Jun 18, 2005 at 10:21:13AM +0200, Paul Reznicek wrote:
> from twisted.internet import reactor
>
> def stopTest(passNo):
> reactor.callLater(1, reactor.stop)
> print 'starting reactor', passNo
> reactor.run()
> print 'stopped'
>
> for i in range(10):
> stopTest(i)
> # -----------------------------------------------
>
> Try the same with current Twisted, it hung after 1st pass.
>
> Any idea, what is wrong? Thanks in advance,
As far as I can tell, you should run the reactor only once for the program
lifetime.
--
jk
More information about the Twisted-web
mailing list