Re: [go-nuts] question about net Buffers.WriteTo method

2025-01-15 Thread Ian Lance Taylor
On Wed, Jan 15, 2025 at 4:07 AM Jamil Djadala wrote: > > As i understand, WriteTo is used to optimize write of multiple buffers > to socket, using writev. But writev also ensure that these multiple > buffers are written atomically, in case of concurrent writes, bytes > from concurrent write are n

[go-nuts] question about net Buffers.WriteTo method

2025-01-15 Thread Jamil Djadala
Hi, As i understand, WriteTo is used to optimize write of multiple buffers to socket, using writev. But writev also ensure that these multiple buffers are written atomically, in case of concurrent writes, bytes from concurrent write are not inserted between buffers of writev. https://cs.opensou