Skip to content

tcp: remove deprecated set_linger call in async accept#2986

Open
Tina-1300 wants to merge 1 commit intorwf2:masterfrom
Tina-1300:fix/tcp-accept-linger
Open

tcp: remove deprecated set_linger call in async accept#2986
Tina-1300 wants to merge 1 commit intorwf2:masterfrom
Tina-1300:fix/tcp-accept-linger

Conversation

@Tina-1300
Copy link

Description

This PR corrects a warning related to the use of the deprecated method.
tokio::net::TcpStream::set_linger.

In listener/tcp.rs, the function accept contained this line :

let _ = conn.set_linger(None);

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.

1 participant

Comments