title: Socket buffer size dynamic
body: <p>I develop a speed test software with a graph. Each seconds, i draw the throughput on the graph. I use socket with a loop on socket.read(...)</p>
  
  <p>The problem is the buffer size. If i set the buffer to 32ko, when the speed is low, my graph is wrong (block on read function until the buffer isn't full). If i set the buffer to 512 octets, the speed is "flanged".</p>
  
  <p>How to set dynamically the buffer size ?</p>