tokio-1.52.3

Ripple-TS/rippletokio-1.52.3May 8, 2026by Darksonn

AI Summary

This release focuses on stability improvements for Tokio's synchronization primitives, specifically correcting edge cases in multi-producer single-consumer (MPSC) channels and reader-writer locks to handle permit management and closure states correctly.

Key Highlights

  • Fixed underflow in mpsc channel `len()` calculation.
  • Ensured receivers are notified correctly in `OwnedPermit::release()`.
  • Enforced non-zero `max_readers` requirement for `RwLock`.
  • Improved `try_recv()` return behavior when permits are outstanding on a closed channel.

Full Release Notes

# 1.52.3 (May 8th, 2026)

### Fixed

* sync: fix underflow in mpsc channel `len()` ([#8062])
* sync: notify receivers in mpsc `OwnedPermit::release()` method ([#8075])
* sync: require that an `RwLock` has `max_readers != 0` ([#8076])
* sync: return `Empty` from `try_recv()` when mpsc is closed with outstanding permits ([#8074])

[#8062]: https://github.com/tokio-rs/tokio/pull/8062
[#8074]: https://github.com/tokio-rs/tokio/pull/8074
[#8075]: https://github.com/tokio-rs/tokio/pull/8075
[#8076]: https://github.com/tokio-rs/tokio/pull/8076