MIO v0.7.6 Release Notes
Release Date: 2020-11-16 // over 3 years ago-
โ Added
net
feature, replacestcp
,udp
anduds
features (https://github.com/tokio-rs/mio/commit/a301ba520a8479b459c4acdcefa4a7c5eea818c7).os-ext
feature, replacesos-util
andpipe
features (https://github.com/tokio-rs/mio/commit/f5017fae8a3d3bb4b4cada25b01a2d76a406badc).- โ Added keepalive support to
TcpSocket
(https://github.com/tokio-rs/mio/commit/290c43a96662d54ab7c4b8814e5a9f9a9e523fda). TcpSocket::set_{send, recv}_buffer_size
(https://github.com/tokio-rs/mio/commit/40c4af79bf5b32b8fbdbf6f2e5c16290e1d3d406).TcpSocket::get_linger
(https://github.com/tokio-rs/mio/commit/13e82ced655bbb6e2729226e485a7de9f2c2ccd9).- Implement
IntoRawFd
forTcpSocket
(https://github.com/tokio-rs/mio/commit/50548ed45d0b2c98f1f2e003e210d14195284ef4).
๐ Deprecated
- The
tcp
,udp
anduds
features, replaced by a newnet
feature. (https://github.com/tokio-rs/mio/commit/a301ba520a8479b459c4acdcefa4a7c5eea818c7). - 0๏ธโฃ The
extra-docs
feature, now enabled by default. (https://github.com/tokio-rs/mio/commit/25731e8688a2d91c5c700674a2c2d3841240ece1). - The
os-util
andpipe
features, replaced by a newos-ext
feature. (https://github.com/tokio-rs/mio/commit/f5017fae8a3d3bb4b4cada25b01a2d76a406badc).
๐ Fixes
- Incorrect assumption of the layout of
std::net::SocketAddr
. Previously Mio would assume thatSocketAddrV{4,6}
had the same layout aslibc::sockaddr_in(6)
, however this is not guaranteed by the standard library. (https://github.com/tokio-rs/mio/commit/152e0751f0be1c9b0cbd6778645b76bcb0eba93c). - Also bumped the miow dependency to version 0.3.6 to solve the same problem as above.