← Back to context

Comment by iforgotpassword

3 years 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.

In 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