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

2 posts / 0 new
Last post
Offline
Last seen: 6 years 8 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: 2 days 22 hours 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.