On 28 May 2015 at 01:22:06, vitaly numenta (
vitaly.kru...@gmail.com) wrote:
> exchange.declare with invalid exchange-type (e.g., "www")
> results in closing of the Connection: 503, "COMMAND_INVALID
> - unknown exchange type 'www'", 40, 10
>
> Normally, errors on the channel are signaled by closing the channel.
> Why is the connection closed in this case in stead of the channel?
> That sound quite extreme.
The spec is not particularly clear on how this kind of error must be handled. Specifying
an exchange type that does not conform to the standard can be seen as an unrecoverable
failures (and it is: unless the app is fixed, it will happen over and over).
Section 3.1.3.6 says:
«All non-normative exchange types MUST be named starting with "x-".»
There are other connection-level errors, e.g. invalid framing.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ