Releases: vapor/async-kit
1.21.0 - Add support for pruning of idle pool connections
What's Changed
Add support for pruning of idle pool connections by @gwynne in #110
EventLoopConnectionPool
now supports optional periodic pruning of connections that have been idle for too long. Both the polling interval and the idle timeout are configurable.Original credit for much of this code goes to @MahdiBM et al—and if I should have the opportunity to credit the et al, I will gladly do so!
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 1.20.0...1.21.0
1.20.0 - Add `shutdownAsync`
What's Changed
Add shutdownAsync
by @0xTim in #109
Even calling Dispatch’s
.wait()
can cause the concurrency pool to deadlock meaning the connection pool never returns. This provides a proper async version ofshutdown()
.Annotates the offending functions with
@noasync
See https://swift-open-source.slack.com/archives/C9MMT6VGB/p1722432257179729 for more context
Reviewers
Thanks to the reviewers for their help:
This patch was released by @0xTim
Full Changelog: 1.19.1...1.20.0
1.19.1 - Fix typo in connection request error message
What's Changed
Fix typo in connection request error message by @rausnitz in #108
There’s a parenthesis missing in the connection request error message.
This fixes vapor/async-kit#107.
This patch was released by @0xTim
Full Changelog: 1.19.0...1.19.1
1.19.0 - Clean up and soft-deprecate AsyncKit
What's Changed
Clean up and soft-deprecate AsyncKit by @gwynne in #106
This update starts the official soft-deprecation of AsyncKit. It should not be used in new code (although it will remain included in Vapor and Fluent 4 for compatibility). It is not expected to receive new updates other than security fixes.
Other changes in this update:
- Require the current Vapor minimum Swift version of 5.7
- The
~
operator onEventLoopFuture
is nowpublic
as was intended (not that anyone noticed it wasn’t 🙂)- The tests run faster
- CI’s been updated
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 1.18.0...1.19.0
1.18.0 - Heavily revise the implementation of EventLoopConnectionPool
What's Changed
Heavily revise the implementation of EventLoopConnectionPool by @gwynne in #102
Overview
This is a temporary stopgap measure to clean up some of the more extant issues with the existing implementation, pending the integration of a much more robust and advanced connection pool solution.
While technically there is no change in the public API surface, this is nonetheless being marked as semver-minor due to the significant changes in behavior. This PR has already revealed a query ordering bug in the Fluent benchmarks just by behaving more correctly.
Reviewers
Thanks to the reviewers for their help:
This patch was released by @gwynne
Full Changelog: 1.17.0...1.18.0