paolo-losi/stormed-amqp — pull request #16 by GHigginson (2012-12-04 17:37:49+00:00)
Title: Fix for channel_id overflow

Hi Paolo,

Great work on stormed btw, it's been exactly what I needed!

Ran into a problem with a service using a long-lived connection. After several days of operation it will suddenly start throwing IO errors... the problem is that the channel_id in the frame is a short and will overflow after 2^16 calls to channel()

This fix will allow the channel_id to roll-over and reuse IDs previously assigned to channels that have since been closed.