Skip to content

Commit

Permalink
Merge branch 'tokio' of https://github.com/e1732a364fed/ruci into tokio
Browse files Browse the repository at this point in the history
  • Loading branch information
e1732a364fed committed Mar 24, 2024
2 parents 3e93ba9 + b365541 commit c1c266c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rucimp/src/net/so2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ pub fn dial_tcp(na: &net::Addr, so: &SockOpt) -> anyhow::Result<TcpStream> {
/// just bind to empty addr
pub fn dial_udp(na: &net::Addr, so: &SockOpt) -> anyhow::Result<UdpSocket> {
let socket = new_socket2(na, so, false)?;
socket.set_nonblocking(true)?; // NECESSARY!
let s: UdpSocket = UdpSocket::from_std(std::net::UdpSocket::from(socket))?;

Ok(s)
}

Expand Down

0 comments on commit c1c266c

Please sign in to comment.