Skip to content

Commit

Permalink
Fix compile error: Make IOV live longer (#163)
Browse files Browse the repository at this point in the history
* make iov live longer

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

* Update src/adapters/udp.rs

---------

Co-authored-by: Luis Enrique Muñoz Martín <[email protected]>
  • Loading branch information
vars1ty and lemunozm authored Sep 13, 2023
1 parent 8e67252 commit 7cfdf6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adapters/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,10 @@ impl LocalResource {
let mut control_buffer = nix::cmsg_space!(libc::sockaddr_storage);

loop {
let mut iov = [io::IoSliceMut::new(&mut input_buffer)];
let result = socket::recvmsg::<SockaddrStorage>(
self.socket.as_raw_fd(),
&mut [io::IoSliceMut::new(&mut input_buffer)],
&mut iov,
Some(&mut control_buffer),
MsgFlags::empty(),
);
Expand Down

0 comments on commit 7cfdf6b

Please sign in to comment.