fix: set nonblocking to true for the client Fd

This commit is contained in:
Ashley Wulber 2023-06-27 13:56:14 -04:00 • committed by Ashley Wulber
parent 32f229986b
commit 3746d20225

View file

@ -40,8 +40,8 @@ pub fn create_privileged_socket(
.into_std() .into_std()
.wrap_err("failed to convert client socket to std socket")?; .wrap_err("failed to convert client socket to std socket")?;
std_stream std_stream
.set_nonblocking(false) .set_nonblocking(true)
.wrap_err("failed to mark client socket as blocking")?; .wrap_err("failed to mark client socket as non-blocking")?;
OwnedFd::from(std_stream) OwnedFd::from(std_stream)
}; };
let mut env_vars = env_vars.to_vec(); let mut env_vars = env_vars.to_vec();