title: SocketAsyncEventArgs and buffering while messages are in parts
body: <p>C# socket server, which has roughly 200 - 500 active connections, each one constantly sending messages to our server. </p>
  
  <p>About 70% of the time the messages are handled fine (in the correct order etc), however in the other 30% of cases we have jumbled up messages and things get screwed up. We should note that some clients send data in unicode and others in ASCII, so that's handled as well. </p>
  
  <p>Messages sent to the server are a variable length string which end in a char3, it's the char3 that we break on, other than that we keep receiving data. </p>
  
  <p>Could anyone shed any light on our ProcessReceive code and see what could possibly be causing us issues and how we can solve this small issue (here's hoping it's a small issue!)</p>
  
  <p>Code below:</p>