Skip to content

Conversation

@theo3
Copy link
Contributor

@theo3 theo3 commented Jan 19, 2021

This change implements Write::poll_write_vectored and Read::poll_read_vectored on TcpStream using the vectored IO methods on the underlying stream. Previously, the Write and Read traits' default implementations were used, which just called poll_write and poll_read once for each IoSlice.

This change correctly results in readv and writev syscalls on Linux.

Implements `Write::poll_write_vectored` and `Read::poll_read_vectored` on `TcpStream` using the vectored IO methods on the underlying stream. Previously, the trait's default implementation was used, which just called `poll_write` and `poll_read` once for each `IoSlice`.
Copy link
Member

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@dignifiedquire dignifiedquire merged commit af66efe into async-rs:master Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants