Skip to content

Use SockRef.set_read_timeout without conversion#320

Open
ZhidongPeng wants to merge 2 commits intoAzure:devfrom
ZhidongPeng:stream
Open

Use SockRef.set_read_timeout without conversion#320
ZhidongPeng wants to merge 2 commits intoAzure:devfrom
ZhidongPeng:stream

Conversation

@ZhidongPeng
Copy link
Collaborator

set_stream_read_time_out to use socket2::SockRef.set_read_timeout, it avoids 2 moderate system calls (tokio TcpStream.into_std and TcpStream.from _std)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants