title: Limiting TCP sending rate
body: <p>TCP flows by their own nature will grow until they fill the maximum capacity of the links used from <code>src</code> to <code>dst</code> (if all those links are empty).</p>
  
  <p>Is there an easy way to limit that ? I want to be able to send TCP flows with a maximum X mbps rate. </p>
  
  <p>I thought about just sending X bytes per second using the <code>socket.send()</code> function and then sleeping the rest of the time. However if the link gets congested and the rate gets reduced, once the link gets uncongested again it will need to recover what it could not send previously and the rate will increase. </p>