title: Reading one byte vs multiple bytes from a socket
body: <p>I have to read data of an unknown length from a socket. I need to wait for a particular sequence of characters to stop reading. </p>
  
  <p>Is it good idea to read only one byte at a time? Maximum length is 4096. I know that reading from a socket should be realized with as large a size to read, as possible, but in my situation, when max length isn't long is it good solution? </p>
  
  <p>What are the consequences of such a reading? </p>
  
  <p>A buffer overflow?</p>