3 ms·
Same old bug, same old blog post repost: http://forwardscattering.org/post/3 http://forwardscattering.org/post/3 "Sockets should have a flushHint() API call"
by Ono-Sendai 6y ago
Same old bug, same old blog post repost: http://forwardscattering.org/post/3 http://forwardscattering.org/post/3 "Sockets should have a flushHint() API call"
- wahern 6y agoThis can be accomplished with the TCP socket options TCP_CORK on Linux and TCP_NOPUSH on FreeBSD and OpenBSD. When enabled only full TCP frames are sent; upon disabling any partial frame is immediately sent. See tcp(7) on Linux, tcp(4) on FreeBSD, and http://dotat.at/writing/nopush.html http://dotat.at/writing/nopush.html clarifying the behavior.
- Ono-Sendai 6y agoYeah, TCP_CORK would work but it's not an elegant solution IMO.