Blocking sockets: when, exactly, does “send()” return?
Does this mean that the send() call will always return immediately if there is room in the kernel send buffer? Yes. As long as immediately means after the memory you provided it has been copied to the kernel’s buffer. Which, in some edge cases, may not be so immediate. For instance if the pointer you … Read more