Re: [Txamqp-user] Opening and closing clients from a long running twisted

2010-08-30 Thread Esteve Fernandez
Hi, sorry to chime in so late. I just got back from holidays, I'll have a look at your patch as soon as I can. Thanks a lot for your patience. On Mon, Aug 30, 2010 at 2:26 PM, matteo brancaleoni wrote: > nevermind, > >> The patch is very trivial and "works for me": >> >> --- txamqp.orig/src/txa

Re: [Txamqp-user] Opening and closing clients from a long running twisted

2010-08-30 Thread matteo brancaleoni
nevermind, > The patch is very trivial and "works for me": > > --- txamqp.orig/src/txamqp/protocol.py  2010-08-05 13:18:05.0 +0200 > +++ txamqp/src/txamqp/protocol.py       2010-08-30 10:32:22.0 +0200 > @@ -32,9 +32,11 @@ >         self.closed = False >         self.reason = None >

Re: [Txamqp-user] Opening and closing clients from a long running twisted

2010-08-30 Thread matteo brancaleoni
Hi (again), On Sat, Aug 28, 2010 at 6:16 AM, Dave Peticolas wrote: > > You want to call txclient.transport.loseConnection(). > after closing client connection to the amqp broker I noticed a lot of warnings into rabbitmq logs, since the connection is closed without closing channels. (rabbit raise

Re: [Txamqp-user] Opening and closing clients from a long running twisted

2010-08-30 Thread matteo brancaleoni
Hi, On Sat, Aug 28, 2010 at 6:16 AM, Dave Peticolas wrote: >> >>> What I cannot understand, is a very simple task: how can I >>> close clients from the client to the server ? >> >> seems that using txclient.transport.connector.disconnect() >> (txclient is a ThriftAMQClient instance) does the tric

Re: [Txamqp-user] Opening and closing clients from a long running twisted

2010-08-25 Thread matteo brancaleoni
Hi again, On Wed, Aug 25, 2010 at 2:51 PM, matteo brancaleoni wrote: > What I cannot understand, is a very simple task: how can I > close clients from the client to the server ? seems that using txclient.transport.connector.disconnect() (txclient is a ThriftAMQClient instance) does the trick.

[Txamqp-user] Opening and closing clients from a long running twisted

2010-08-25 Thread matteo brancaleoni
Hi, I'm using txthrift to send remote services requests via amqp. Right now all is good, server and client are working as expected. But now I'm a bit stucked... consider this scenario: xml/json -> txthrift_client -> txthrift_server basically my client is a twisted server which listens for xml/j