Why does the sender send a data to sleep, without sleep, the receiver loses packets?

2 posts / 0 new
Last post
Offline
Last seen: 2 years 9 months ago
Joined: 08/13/2017
Posts: 2
Why does the sender send a data to sleep, without sleep, the receiver loses packets?
rip
rip's picture
Offline
Last seen: 6 days 40 min ago
Joined: 04/06/2012
Posts: 321

Because your computer is faster than the network connection, and so those samples need to be buffered.  If the buffers overflow, when the network can't keep up, samples get dumped in favor of later samples.  sleep() mitigates this fact of life.