simple_one_for_one now covers the 'terminate' case properly
merge bug23958 into default
Added tag rabbitmq_v3_1_0 for changeset 007cc7233970
Merge heads
stable -> default
stable to default
merge stable into default
merge stable into default
Introduce amqp_connection:register_blocked_handler

For handling of connection.blocked and connection.unblocked
methods. Mimics the channel.flow handling API.

Incomplete, does not yet pass the tests. Pushed
for review.
Remove ancient test that could not possibly pass (no longer using memsup or channel.flow). It wasn't hooked in anywhere, but is misleading.
Add connection.blocked to client capabilities
Print where test output is redirected

Also, provide an alternative task that runs tests in foreground,
useful when debugging a test.
Correct connection.blocked test to use set/clear alarm

It was originally based on an old channel.flow test that
did not run and wouldn't work on RabbitMQ versions after 2.0.

This implementation sets and clears alarms the same way
server tests in the Java client do.

Makes make test_network pass.
Limit this connection.blocked test to network connections

Still exploring if it's a good idea to have two separate tests
or not.
merge stable into default
Add new behaviour here.
Invoke the cancel callback whenever we send a basic.cancel as well as when we receive one. This means the selective consumer will always tidy up its state in handle_cancel/2 and therefore does not need to do so in handle_cancel_ok/3.
Damn, we can't always update our state on basic.cancel or when we receive the cancel-ok we won't know what to do with it!
Minor cleanup and don't conflate two different errors together.
* Test consume / cancel / consume.
* Merge the two receives to get rid of a rather dubious "after 0".