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

2 posts / 0 new
Last post
Offline
Last seen: 3 years 1 month 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: 1 day 3 hours ago
Joined: 04/06/2012
Posts: 322

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.