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

2 posts / 0 new
Last post
Offline
Last seen: 7 years 3 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: 14 hours 17 min ago
Joined: 04/06/2012
Posts: 324

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.