The channel is unpredictably closed. #10370
-
Hello, everybody. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That's how the protocol was designed. There are two highly relevant documentation sections.
|
Beta Was this translation helpful? Give feedback.
-
Ask yourself what else the server could do when you try to consume from a non-existent queue or acknowledge an unknown delivery tag (which includes double acknowledgements). It should probably communicate an error somehow to the client. And since messaging protocols are usually asynchronous in nature (many operations do not have a direct response associated with them), this is basically how an error is communicated: by closing the channel. It's not the only approach but many messaging protocols have independently settled on something quite similar to this behavior. If you know that it makes sense to retry, you can open a new channel and do just that. |
Beta Was this translation helpful? Give feedback.
That's how the protocol was designed.
There are two highly relevant documentation sections.