In many UNIX TCP implementations, a socket option TCP_CORK is provided which allows the caller to bypass Nagle\'s algorithm and explicitly specify when to send a physical pa
FWIW I successfully use TCP_NODELAY to get TCP_CORK-style behavior. I do it like this:
That works fine for me under Windows, MacOS/X, and Linux. (Note that under Linux the final zero-byte send() isn't necessary)