Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 32s8 days 9 hours 54 minutes 32 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 32s8 days 9 hours 54 minutes 32 seconds.

Sign in to watch this lesson
TCP · 3:48
What happens when the receiving program is slower than the sender? Following K&R, we draw TCP's receive buffer as a tank, derive the receive window rwnd = RcvBuffer - [LastByteRcvd - LastByteRead], and see how it rides back on every ACK, why a zero window needs one-byte probes, and why UDP has no such brake. A C program on this Mac's loopback shows a stalled reader blocking the sender's write() within milliseconds, the sender settling to a slow reader's pace, and a UDP socket silently losing a quarter of its datagrams.