CopernicaMarketingSoftware/AMQP-CPP — pull request #6 by luca3m (2014-04-02 15:24:21+00:00)
Title: Envelope owns body buffer

I think it's better to let Envelope owning it's body buffer. When socket calls connection::parse() it normally will deallocate buffers, so bad things happen like segmentation faults. On the other hand, socket implementor doesn't know what data retain and what discard, because don't know anything about protocol.