What version do you use? I'm not sure this is a common use case. Perhaps
forcefully closing all connections when vhost is deleted is the right thing
> Situation 2: Delete a connection that has only just been accepted.
> Log: https://gist.github.com/mattbennett/4132689345adcb17703c
> a) connection 127.0.0.1:59257
> b) connection 127.0.0.1:59257
is "closed by the management
> plugin" (via a REST call)
> c) boom
> I'm less sure this isn't my fault, but a 500 error doesn't seem
> correct behaviour for rabbit. In case it's interesting, the
> two connections here are generated by a test that doesn't clean
> up after itself. We force closed any connection than remain between
> tests, and sometimes this results in the error above.
This is a race condition: it takes some time (however small) to set up everything
related to a connection, so I think returning 404 is the best solution
we can offer.
Staff Software Engineer, Pivotal/RabbitMQ