News for hackers. Stuff that matters.
Re:Golang is evil on shitty networks by iforgotpassword on Friday December 30, 2022 @03:15AM (#34183041)
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.
Re:Golang is evil on shitty networks by another2another on Friday December 30, 2022 @07:26AM (#34184392)
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