If this is a problem, you are writing your program incorrectly.
You cannot set more than 10 Mbit / s to a 10 Mbit / s link, so the stream that is written to the slower link should start to block when recording. As long as your stream uses a read buffer of the same size as the write buffer, the stream should only consume data as fast as it can throw it out of the 10 Mbps pipe. Any flow control necessary for a remote sender to put you more than 10 Mbps into a 100 Mbps tube will automatically depend on the TCP protocol.
So this should not be a problem if your read and write buffers are the same size in this stream (or any stream).
source share