Open a-urth opened 7 years ago
Well, it's not so much called as it's already running as a Task when the handshake is done.
Given the current "error handling" code, yes this behavior looks correct. TBH, we don't use on_error
callbacks in our production code. The whole thing needs to be reworked…
Thanks for answer, makes sense now.
After updating to 0.9.0 version to avoid the problem with server closed connection close operation I've noticed that following error always occurs after protocol close operation. Seems that protocol
run
is called shortly after closing.I'm seeing because of
on_error
callback in which I catch and log all possible amqp errors.Is this desired behavior?