-
Notifications
You must be signed in to change notification settings - Fork 18k
x/sys/unix: sendmsg does not permit sending multiple buffers #9402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
We can't change the existing functions, but how about introducing this?
Any suggestions for a better name? |
GIven the existence of |
Superseded by #52885? |
Yes, thanks. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
(I realize syscall has moved to its own repo as of 1.4, but that repo doesn't have a bug tracker so I assume this is still the right place to file such things, please correct me if I'm wrong.)
The unix
Sendmsg
andSendmsgN
system calls permit passing in multiple buffers through the use of an io-vector structure, however the Go wrappers for these functions take only a single[]byte
and hard-code the length of the io-vector to 1. It would be very useful for performance in some cases (such as IBM/sarama#238) ifSendmsg
could be made to take a[][]byte
and construct the equivalent io-vector.The text was updated successfully, but these errors were encountered: