Skip to content

tcp: remove deprecated set_linger call in async accept#2986

Closed
Tina-1300 wants to merge 1 commit into
rwf2:masterfrom
Tina-1300:fix/tcp-accept-linger
Closed

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

Conversation

@Tina-1300
Copy link
Copy Markdown

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);

@Tina-1300 Tina-1300 closed this by deleting the head repository May 25, 2026
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