Skip to content

Commit

Permalink
Fix socket deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Jan 14, 2024
1 parent a9dabf2 commit 5bcacde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ impl Server {
socket.set_only_v6(false)?;
}

socket.set_nonblocking(true)?;
socket.bind(&addr.into())?;
socket.listen(128)?;

Expand Down

0 comments on commit 5bcacde

Please sign in to comment.