Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile error: Make IOV live longer #163

Merged
merged 12 commits into from
Sep 13, 2023
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
Loading