News for hackers. Stuff that matters.
Re:How a little bit of TCP knowledge is essential by colanderman on Saturday November 21, 2015 @05:41PM (#10608334)
You don't need to entirely disable Nagle; just flash TCP_NODELAY on then off immediately after sending a packet for which you will block for a reply. This way you still get the benefit Nagle brings of coalescing small writes, without the downside.

(Alternatively, turn Nagle off entirely and buffer writes manually or using MSG_MORE or TCP_CORK.)

There are no comments on this comment yet.