News for hackers. Stuff that matters.
Re:What they don't teach you about sockets by tptacek on Tuesday July 26, 2022 @02:15PM (#32241811)
It's not 100% obvious. The mental model where send() blocks until recv() on the other side confirms it is coherent: the receiver sends ACKs with bumped ack numbers to acknowledge the bytes it's received, and could delay those ACKs until the application has taken the bytes out of the socket buffer. It doesn't work that way, of course, and shouldn't, but it could.

There are no comments on this comment yet.