diff --git a/platform/linux/mod.rs b/platform/linux/mod.rs index 7ee17c356..84cdf6a30 100644 --- a/platform/linux/mod.rs +++ b/platform/linux/mod.rs @@ -201,7 +201,7 @@ impl UnixSender { &mut maximum_send_size_len as *mut socklen_t) < 0 { return Err(UnixError::last()) } - let bytes_per_fragment = maximum_send_size - (mem::size_of::() + + let bytes_per_fragment = maximum_send_size - (mem::size_of::() * 2 + CMSG_SPACE(cmsg_length as size_t) as usize + 256); // Split up the packet into fragments.