Re: [Twisted-Python] [Q] Naming Service for Twisted Servers

2009-01-11 Thread Esteve Fernandez
On Saturday 10 January 2009 23:27:18 Don Smith wrote: > Why not use a Message Queue? I developed a very similar program to what you > have described, only each agent would connect to the Queue to get their > data to work on. However, I think something like Apache ActiveMQ or > AmazonSQS would be a

[Twisted-Python] connectionLost not always getting called?

2009-01-11 Thread Rob Bredow
I've implemented a twisted server using the basic.lineReceiver class. The client is a socket based client implemented in flash and the connections are long-lived (minutes or hours). To handle cleaning up the players when they disconnect, I'm using the connectionLost function in my player class.

Re: [Twisted-Python] [Q] Naming Service for Twisted Servers

2009-01-11 Thread V S P
Hi, I thought that MQ is quite 'heavy' for my needs Basically the whole system allows users to request 'reports' and those reports can rung for days (or hours). Instead of having 'one' persistent queue (or a service) such as provided for typical MQ implementations -- I thought just to have a 'l

Re: [Twisted-Python] [Q] Naming Service for Twisted Servers

2009-01-11 Thread V S P
Thank you for all the replies regarding my question of the Twisted Naming Server and in general multi-machine Event Dispatching systems. So far my understanding from all the replies is as follows 1) there is no pre-built naming server for twisted 2) there is no multi-machine message/event dispa

Re: [Twisted-Python] connectionLost not always getting called?

2009-01-11 Thread Jean-Paul Calderone
On Sun, 11 Jan 2009 15:55:03 -0800, Rob Bredow wrote: I've implemented a twisted server using the basic.lineReceiver class. The client is a socket based client implemented in flash and the connections are long-lived (minutes or hours). To handle cleaning up the players when they disconnect, I'

Re: [Twisted-Python] connectionLost not always getting called?

2009-01-11 Thread Andrew Bennetts
Rob Bredow wrote: [...] > web-browser does not always trigger a connectionLost call. I tracked down one > specific instance yesterday where the server thought the client was still > connected even though the client had been gone for 30+ minutes--but after a > few > hours the server noticed that t

Re: [Twisted-Python] connectionLost not always getting called?

2009-01-11 Thread glyph
On 01:27 am, exar...@divmod.com wrote: This is a FAQ, so I've just added it to the FAQ. Please let me know what you think of the entry: http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#WhyisntmyconnectionLostmethodcalled Thanks for finally adding that to the FAQ. It seems to me

Re: [Twisted-Python] connectionLost not always getting called?

2009-01-11 Thread Rob Bredow
Thanks so much for the quick help. I had done some searching and stumbled into that 2 hour TCP/IP limitation but I didn't find anything as clear as your FAQ entry. My messages every 30 seconds seem to have solved my issue and I'm glad to know it's a TCP/IP thing not related to my server or twiste

Re: [Twisted-Python] [Q] multi-process chat client and poller

2009-01-11 Thread Valentino Volonghi
On Jan 3, 2009, at 2:32 PM, V S P wrote: Thank you so much Yes, this plugin is what I am looking for process pool " """ This plugin provides ways to create a process pool service in your system listening on a given port and interface and answering to a given set of commands. """