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

net: Add send/recv buf size methods to TcpSocket #3145

Merged
merged 1 commit into from
Nov 16, 2020
Merged

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Nov 16, 2020

This commit adds set_{send, recv}_buffer_size methods to TcpSocket
for setting the size of the TCP send and receive buffers, and
{send, recv}_buffer_size methods for returning the current value. These
just call into similar methods on mio's TcpSocket type, which were
added in tokio-rs/mio#1384.

Refs: #3082

Signed-off-by: Eliza Weisman eliza@buoyant.io

This commit adds `set_{send, recv}_buffer_size` methods to `TcpSocket`
for setting the size of the TCP send and receive buffers, and `{send,
recv}_buffer_size` methods for returning the current value. These just
call into similar methods on `mio`'s `TcpSocket` type, which were added
in tokio-rs/mio#1384.

Refs: #3082

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
@hawkw hawkw added C-enhancement Category: A PR with an enhancement or bugfix. A-tokio Area: The main tokio crate M-net Module: tokio/net labels Nov 16, 2020
@hawkw hawkw requested review from carllerche and Darksonn and removed request for carllerche November 16, 2020 19:13
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 this pull request may close these issues.

3 participants