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

2009-01-13 Thread V S P
Hi, thank you for the reply, yes I meant XMPP and thought that it might be written to be deployed on multiple machines. But from what you are saying it is not. Yes, started looking at Erlang as well (and its Mnesia component) rabbitMQ seems like what I need in terms of scalable multi-machine supp

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

2009-01-13 Thread Drew Smathers
On Tue, Jan 13, 2009 at 4:11 PM, V S P wrote > Hi, thank you for the correction on how to use Ampula. > > Naming service serves > really as a 'discovery' tool -- and then the participating > components talk to each other. When new component comes > on online, it registers, and the Naming Service

Re: [Twisted-Python] Tracebacks being dropped from exceptions when using inlineCallbacks

2009-01-13 Thread glyph
On 13 Jan, 02:58 am, p...@bubblehouse.org wrote: On Jan 12, 2009, at 8:36 PM, Terry Jones wrote: I think I've finally gotten to the bottom of why exceptions sometimes lose their tracebacks when using inlineCallbacks. [snip snip] I'll stop for now. I have some suggestions for fixes, but I'm

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

2009-01-13 Thread V S P
Hi, thank you for the correction on how to use Ampula. Naming service serves really as a 'discovery' tool -- and then the participating components talk to each other. When new component comes on online, it registers, and the Naming Service broadcasts the new updates to all the subscribed componen

[Twisted-Python] adbapi and ConnectionLost.

2009-01-13 Thread Sébastien HEITZMANN
Hi, for a couple of week i search how i should handle mysql disconnection on my twisted web service. When I restart the database without restarting my service i got some ConnectionLost fired. I have used the cp_reconnect on the connection pool and it seem to work ( the lost connection is restarted

Re: [Twisted-Python] IPushProducer problem

2009-01-13 Thread Jean-Paul Calderone
On Tue, 13 Jan 2009 16:34:29 +0100, Gabriel Rossetti wrote: Hello everyone, I implemented a push-produce a while back and I though it works, but it didn't. When the msgs where spaced out, it worked, but if several msgs were sent one after the other, then things go bad (the msgs get mixed up)

[Twisted-Python] IPushProducer problem

2009-01-13 Thread Gabriel Rossetti
Hello everyone, I implemented a push-produce a while back and I though it works, but it didn't. When the msgs where spaced out, it worked, but if several msgs were sent one after the other, then things go bad (the msgs get mixed up)... I found this thread : http://www.twistedmatrix.com/piper

Re: [Twisted-Python] connectTCP() passing a ClientFactory: how to get the local port of the created client socket?

2009-01-13 Thread Alessio Pace
On Tue, Jan 13, 2009 at 3:42 PM, Jean-Paul Calderone wrote: > On Tue, 13 Jan 2009 15:34:19 +0100, Alessio Pace > wrote: > >> Hi, >> >> I'm having some difficulties in trying to figure out how to get a >> reference >> to the connector or anyway the local port to which a client socket is >> bound >

Re: [Twisted-Python] connectTCP() passing a ClientFactory: how to get the local port of the created client socket?

2009-01-13 Thread Jean-Paul Calderone
On Tue, 13 Jan 2009 15:34:19 +0100, Alessio Pace wrote: Hi, I'm having some difficulties in trying to figure out how to get a reference to the connector or anyway the local port to which a client socket is bound in a reactor.connectTCP() call, where the bindAddress is not passed as parameter, t

[Twisted-Python] connectTCP() passing a ClientFactory: how to get the local port of the created client socket?

2009-01-13 Thread Alessio Pace
Hi, I'm having some difficulties in trying to figure out how to get a reference to the connector or anyway the local port to which a client socket is bound in a reactor.connectTCP() call, where the bindAddress is not passed as parameter, thus letting the OS pick an available port. In fact in the

RE: [Twisted-Python] Manhole and StandardIO

2009-01-13 Thread Jean-Paul Calderone
On Tue, 13 Jan 2009 10:08:06 +0100, Zoran Bosnjak wrote: StandardIO accepts an IProtocol provider as an argument. Manhole does not implement IProtocol, it implements ITerminalProtocol. So you cannot use these two classes together like this. See twisted/conch/stdio.py for examples of how to us

RE: [Twisted-Python] Manhole and StandardIO

2009-01-13 Thread Zoran Bosnjak
> StandardIO accepts an IProtocol provider as an argument. > Manhole does not implement IProtocol, it implements > ITerminalProtocol. So you cannot use these two classes > together like this. > > See twisted/conch/stdio.py for examples of how to use manhole > on stdio. Thanks for your sugge