ooici/pyon — pull request #468 by daf (2014-02-18 21:23:53+00:00)
Title: Add pending channel numbers to Node for insulation, updates OOIION-1753

When requesting a channel number from Pika, when the correct set of circumstances leads to a channel not being fully allocated, our channel number selector wouldn't know about it but would cause Pika to crash, failing the container.

This adds a layer of insulation to ensure when a channel number is handed out, it won't be handed out again until it completes a round trip from Pika and gets wrapped by our AMQPTransport class.

This is to help solve the AMQCHAN IS NONE THIS SHOULD NEVER HAPPEN issues that occur from spurious greenlet interleaving with pika.