Skip to content
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

Change TcpStream::poll_peek to use ReadBuf #2987

Closed
Darksonn opened this issue Oct 19, 2020 · 3 comments · Fixed by #3259
Closed

Change TcpStream::poll_peek to use ReadBuf #2987

Darksonn opened this issue Oct 19, 2020 · 3 comments · Fixed by #3259
Assignees
Labels
A-tokio Area: The main tokio crate C-enhancement Category: A PR with an enhancement or bugfix. M-net Module: tokio/net
Milestone

Comments

@Darksonn
Copy link
Contributor

Darksonn commented Oct 19, 2020

This includes poll_peek on all of TcpStream, ReadHalf and OwnedReadHalf.

This is a breaking change, so must be done when transitioning to Tokio 1.0.

@Darksonn Darksonn added C-enhancement Category: A PR with an enhancement or bugfix. A-tokio Area: The main tokio crate M-net Module: tokio/net labels Oct 19, 2020
@Darksonn Darksonn added this to the v1.0 milestone Oct 19, 2020
@Darksonn Darksonn changed the title Change TcpStream::peek and poll_peek to use ReadBuf Change TcpStream::poll_peek to use ReadBuf Oct 19, 2020
@Darksonn
Copy link
Contributor Author

Modified to only include poll_peek to be consistent with AsyncReadExt::read that doesn't use ReadBuf either.

@zaharidichev
Copy link
Contributor

@Darksonn Can I take that one?

@Darksonn
Copy link
Contributor Author

It's better to do it later. The PR will have to sit around for a long time waiting for us to start on the v1.0 transition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-enhancement Category: A PR with an enhancement or bugfix. M-net Module: tokio/net
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants