[Twisted-Python] Reactor Spinning?

2010-05-04 Thread Moxie Marlinspike
Hey Twisted folks, I'm using the twisted.web framework for a high performance HTTP proxy server that very closely resembles the HTTP proxy server example that comes with the twisted package. Under heavy load, I occasionally run into a problem where the reactor appears to start spinning on an "em

Re: [Twisted-Python] Reactor Spinning?

2010-05-04 Thread Werner Thie
Does it spin forever or does it clear up after some time? I have occasional 'hickups' with heavy loads with responses taking several ten seconds for no apparent reason, the server then working again like nothing happened. Werner Moxie Marlinspike wrote: > Hey Twisted folks, > > I'm using the

Re: [Twisted-Python] Reactor Spinning?

2010-05-04 Thread Moxie Marlinspike
I've seen it clear up before, but it will normally spin for days. This state doesn't really impact performance at all (requests are still snappy), but it is annoying how much CPU time it eats through before a restart. - moxie -- http://www.thoughtcrime.org Werner Thie wrote: > Does it spin f

Re: [Twisted-Python] Reactor Spinning?

2010-05-04 Thread Itamar Turner-Trauring
> > Hey Twisted folks, > > I'm using the twisted.web framework for a high performance HTTP proxy > server that very closely resembles the HTTP proxy server example that > comes with the twisted package. > > Under heavy load, I occasionally run into a problem where the reactor > appears to start spi

Re: [Twisted-Python] Reactor Spinning?

2010-05-04 Thread exarkun
On 01:48 pm, mo...@thoughtcrime.org wrote: > >Hey Twisted folks, > >I'm using the twisted.web framework for a high performance HTTP proxy >server that very closely resembles the HTTP proxy server example that >comes with the twisted package. > >Under heavy load, I occasionally run into a problem wh

Re: [Twisted-Python] win32com client in a twisted thread

2010-05-04 Thread Don Dwiggins
Andrew, Itamar, thanks. I've taken the hint to CoInitialize the thread. That gets me a bit further, but there's still some strange stuff going on. I'm going to have to put this on the back burner for a while in favor of higher priority stuff. -- Don Dwiggins Advanced Publishing Technology