pika/pika — pull request #345 by cooper6581 (2013-05-23 20:16:30+00:00)
Title: handle_write in base_connection not verifying entire frame was sent

This is most definitely not the way to fix this, but I wasn't sure the best way to append a valid frame back into the deque. I was running into intermittent issues with RabbitMQ 3.04 and 3.1 with large payload sizes (around 1MB). sock.send would only return 10784 bytes written, instead of the 32768 bytes expected.