3 ms·
Often times when people want to send five structs, they just call send five times. I find delayed acks a lot more weird compared to nagle.
by iforgotpassword 4y ago
Often times when people want to send five structs, they just call send five times. I find delayed acks a lot more weird compared to nagle.
- another2another 4y agoIn those cases it would be better to call writev() which was designed to coalesce multiple buffers into one write call. How it sends the data is however up to the implementation, and whether it delays the last send if the TCP buffer isn't entitrely full I'm not sure - but it doesn't make sense to do so, so I would guess not. https://linux.die.net/man/2/writev https://linux.die.net/man/2/writev