title: Socket chunk/buffer size
body: <p>I’m using select on a socket connection in Python with a chunk size of 1024 to send two wav files. The server is listening to two sockets which are both sending chunks of 1024 (checked with print statement). The chunk data is then put into an empty numpy array for further processing however, when I check the size of the numpy array, the value is only 512 for each array, leading to a combined 1024 chunk on the receiving end and resulting in distorted audio. I’ve tried adjusting chunk size, as well as using </p>
  
  <pre><code>data = s.recv(1024)
  data += s.recv(1024)
  </code></pre>
  
  <p>Which results in both sizes being 1024, however the audio ends up being sped up. Can provide code upon request. Any help is much appreciated!</p>