[Twisted-Python] live - debug?
justinjohnson at gmail.com
Tue Jan 25 16:33:30 EST 2005
If you are running on Windows and your DOS prompt is filling up with
tracebacks, it is probably the 64 object limitation with the
win32event reactor. I do my best to avoid that problem by only
allowing a certain number of tasks to happen at the same time, using a
semaphore. You can try another reactor if you don't need to call
spawnProcess (see http://twistedmatrix.com/bugs/issue591).
On Tue, 25 Jan 2005 17:53:06 -0300 (ART), Luciano Andrade
<andrade_luciano_a at yahoo.com.ar> wrote:
> --- Itamar Shtull-Trauring <itamar at itamarst.org>
> > On Tue, 2005-01-25 at 16:53 -0300, Luciano Andrade
> > wrote:
> > > Hello every one...I start using twisted matrix and
> > > develop an aplication (both server and client)
> > > realativly easy but it seems every once in a wille
> > the
> > > server (some times the client too) hung showing
> > > traceback from an error, the problem is that the
> > > software works, but i like to put some debug(or a
> > log
> > > system) to see if ther server crashed (sometimes
> > > acsidentally crash the reactor), can any one use
> > > something like that, also I like to use some sort
> > of
> > > restart-on-halt system. Any ideas (except
> > > gramatical/ortographics corrections) are wellcome.
> > You can have code that runs everytime an exception
> > is logged:
> > twisted.python.log.addObserver(f)
> > f(aDict) will be called for every logged message,
> > including
> > exceptions/failures. Just make sure f() doesn't
> > raise exceptions itself
> > or it will get removed.
> > If you have code that crashes the *reactor*, i.e.
> > twisted quits, that's
> > a bug in twisted and you should add a report ot
> > http://twistedmatrix.com/bugs/.
> > _______________________________________________
> > Twisted-Python mailing list
> > Twisted-Python at twistedmatrix.com
> when I say that crashes the *reactor* i mean that the
> server borke the conection with the client(the
> protocol crahses acording with i understud) but
> others clients later are unhable to connect (in the
> server dos-box continuosly showing a traceback)
> PS: thaks for the micro-example, I just read about the
> log class and don't know where get simple exmaples.
> Any sujestions.
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
> ¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python