Vapor: 4.112.1 Release

Release date:
February 7, 2025
Previous version:
4.112.0 (released January 22, 2025)
Magnitude:
67 Diff Delta
Contributors:
3 total committers
Data confidence:
Commits:

Top Contributors in 4.112.1

sidepelican
gwynne
fpseverino

Directory Browser for 4.112.1

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

What's Changed

Use singleton NIOThreadPool by default by @gwynne in #3298

All Vapor applications currently end up with at least two running thread pools - the global singleton and the one created by Vapor by default. This change configures the global singleton (whose thread count defaults to System.coreCount anyway) as the default, eliminating the additional thread pool. This is especially nice for backtraces, as it cuts down noticeably on the number of excess threads in a Vapor process.

We also now ignore UnsupportedOperation errors during thread pool shutdown, which is necessary for using the singleton pool, and was previously preventing users from explicitly configuring use of the singleton thread pool, due to the (inconsistent) use of try!.

Reviewers

Thanks to the reviewers for their help: - @MahdiBM

This patch was released by @gwynne

Full Changelog: https://github.com/vapor/vapor/compare/4.112.0...4.112.1