Closed Jacobh2 closed 5 years ago
Sorry for the clutter, this question is not relevant: I would say the simple answer is that you don't reopen a closed channel.
My problem is really not how to reopen a closed channel, but why the channel gets closed in the first place!
Hey!
This is not a bug of the lib per say, but a question about a problem I'm facing. Sorry if this is the wrong place to ask this.
I'm getting
aioamqp.exceptions.ChannelClosed
being thrown at me after some time when I dochannel.basic_client_ack
.I'm not 100% why the channel is getting closed, the
protocol.ensure_open()
doesn't throw any errors, so it seems to still have some connection to the broker.My idea was to simply recreate the
channel
object by runningon the same
protocol
instance, which seems to still be open and working.This seems to now be the way to go, since I then see the following in the broker's logs (
unknown delivery tag
):My thought was then that when I recreate the channel, it gets a new
channel_id
, which might throw it off, but it seems like by looking in the broker logs, that it is alwayschannel 1
that is being used.delivery_tag
s that are out, are still valid?