Skip to content

4.86.2 - Make Async Request Body actually work

Compare
Choose a tag to compare
@penny-for-vapor penny-for-vapor released this 07 Nov 13:14
· 49 commits to main since this release
d682e05

What's Changed

Make Async Request Body actually work by @0xTim in #3096

The existing implementation of adding an AsyncSequence to Request.Body had two issues:

  • it didn’t ensure code was being called from the correct event loop which broke Sendable guarantees and was unsafe
  • it would hit a precondition failure in the implementation if backpressure was triggered because the initial state was not accounted for

This fixes that

Reviewers

Thanks to the reviewers for their help:

This patch was released by @0xTim

Full Changelog: 4.86.1...4.86.2