Good question. I think no one ever needed this, or they circumvented it. If I remember correctly, enabling
TCP_NODELAY
immediately
TCP_NODELAY
data. Then you can just turn it off.
Of course, this is due to the high cost of two system calls for a "flash". What you could do: send(2)
, in Unix implementations there is a flags
argument. You can implement your own flag, something like: MSG_JUSTPUSHIT
(well, maybe a different name) and look at it in tcp_output
.
cnicutar
source share