[Twisted-Python] Many connections and TIME_WAIT

2010-01-26 Thread Donal McMullan
I've been prototyping a client that connects to thousands of servers and calls some method. It's not real important to me at this stage whether that's via xmlrpc, perspective broker, or something else. What seems to happen on the client machine is that each network connection that gets opened and

[Twisted-Python] Twisted newb I can't add a cred checker to a Factory class

2010-01-26 Thread adamjamesdrew same
class ProxyIncomingProtocol(Protocol): . class ProxyOutgoingProtocol(Protocol): . class ProxyFactory(Factory): protocol = ProxyIncomingProtocol class SimplePerspective(pb.Avatar): def perspective_echo(self, text): print 'echoing',text return text def logout

Re: [Twisted-Python] How to diagnose slowness

2010-01-26 Thread exarkun
On 09:52 am, gabriel.rosse...@arimaz.com wrote: >Hello everyone, > >I have noticed slowness sometimes in between two twisted apps. It >doesn't happen often, >and I'm not sure where it comes from. It may either be when the msg is >sent, that it really >isn't sent until after a delay (why?), or when

[Twisted-Python] How to diagnose slowness

2010-01-26 Thread Gabriel Rossetti
Hello everyone, I have noticed slowness sometimes in between two twisted apps. It doesn't happen often, and I'm not sure where it comes from. It may either be when the msg is sent, that it really isn't sent until after a delay (why?), or when the other service receives it, it takes time to proc