infinispan/infinispan — pull request #1126 by tristantarrant (2012-05-18 14:43:55+00:00)
Title: ISPN-2053

https://issues.jboss.org/browse/ISPN-2053

don't assume there isn't a CR/LF after a data block (even if empty) just because the current ChannelBuffer is empty.

For 5.1.x and master (cherry-picks cleanly on both)