title: Netty fragmentation for client messages with varying length
body: <p>I'm having some problems with netty fragmentation of data.
  My server accepts connection from client. The client
  sends different message types. Theses messages tell the length of 
  the payload in the first 2 bytes.</p>
  
  <p>An example:</p>
  
  <pre><code>Message 1
  [00 21][21 bytes of payload]
  
  Message 2
  [00 25][23 bytes of payload]
  
  Message 1
  [00 80][80 bytes of payload]
  </code></pre>
  
  <p>I can tell I am missing messages because the messages are numbered sequentially.
  Below is how the Payloads look after processing:</p>
  
  <pre><code>Count:1,Messnger:John Doe1, Message:"I can tell you something";
  Count:1,Messnger:John Doe2, Message:"What do you have to tell me";
  Count:1,Messnger:John Doe3, Message:"Always be reading and teaching";
  </code></pre>
  
  <p>So say if the client sends 5 messages:</p>
  
  <pre><code>Message 1
  Message 2
  Message 3
  Message 4
  Message 5
  </code></pre>
  
  <p>In my reading and processing, I miss some messages. I only get say</p>
  
  <pre><code>Message 1
  Message 2
  Message 4
  </code></pre>
  
  <p>I'm not sure why but I'm thinking messages might be fragmenting</p>