txamqp-user team mailing list archive
-
txamqp-user team
-
Mailing list archive
-
Message #00063
Re: Opening and closing clients from a long running twisted
Hi,
On Sat, Aug 28, 2010 at 6:16 AM, Dave Peticolas <dave@xxxxxxxxxx> 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.
>>
>> is this the right way to do it?
>
> You want to call txclient.transport.loseConnection().
yes it's better!
thanks!
References