Skip to content

Commit

Permalink
Refine TCP options setting for Linux and Android platforms in TcpList…
Browse files Browse the repository at this point in the history
…ener
  • Loading branch information
nullchinchilla committed Mar 28, 2024
1 parent 57bd59b commit f40dec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/sillad/src/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl Listener for TcpListener {
fn set_tcp_options(conn: &Async<TcpStream>) -> std::io::Result<()> {
conn.get_ref().set_nodelay(true)?;

#[cfg(unix)]
#[cfg(any(target_os = "linux", target_os = "android"))]
unsafe {
use std::os::fd::AsRawFd;
let lowat: libc::c_int = 32768;
Expand Down

0 comments on commit f40dec5

Please sign in to comment.