-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix NIOLoopBound issues #3081
Fix NIOLoopBound issues #3081
Conversation
Tests/VaporTests/PipelineTests.swift
Outdated
var eventLoopGroup: EventLoopGroup! | ||
|
||
override func setUp() async throws { | ||
eventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: 8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just use the singleton?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll switch the this, this was my attempts to make it crash and ensure we definitely had more than one event loop
I've audited the other usages of |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3081 +/- ##
==========================================
+ Coverage 76.31% 76.34% +0.02%
==========================================
Files 211 211
Lines 7853 7862 +9
==========================================
+ Hits 5993 6002 +9
Misses 1860 1860
|
These changes are now available in 4.84.4 |
Fixes a number of issues where
NIOLoopBound
andNIOLoopBoundBox
were used without ensuring we were on the correct event loop before accessing them. This could lead to precondition crashes