Tags: classicvalues/swift-nio
Tags
Fix testSchedulingTaskOnSleepingLoopWakesUpOnce (apple#1992) Motivation: This test is flaky, and has always been flaky. The issue here is simply a timing one. It has always been possible for the thread running in the background DispatchQueue to be take longer between calling semaphore.signal and promise.cascade(to:) than it does for the event loop to process the tasks. If that happens, this test will fail by eventually timing out. Modifications: - Adjust the test to avoid using promise.cascade(to:), and so prevent it from having at timing window. Result: The test will be not flaky, or at least less flaky. Resolves apple#1971. Co-authored-by: George Barnett <[email protected]>
Allow HTTP Server to send multiple informational heads before actual … …response head (apple#1985) Co-authored-by: Helge Heß <[email protected]> Co-authored-by: Tobias Haeberle <[email protected]> Co-authored-by: Helge Heß <[email protected]> Co-authored-by: Tobias Haeberle <[email protected]>
Readd module _NIOConcurrency to not break adopters (apple#1970)
Work around Xcode 13 GM SDK issues. (apple#1956) (apple#1968) Motivation: Xcode 13 GM shipped with a Swift overlay for libsystem in macOS that marked free's first argument as non-nullable. This leads to an awkward breakage for us, because we're trying to hold a reference to free as a function pointer, and to do that we had an explicit type annotation. We'd like to keep NIO compiling in Xcode 13 GM. Modifications: - Defined the free function as a thunk that passes through to the underlying OS free call, but takes its first argument as non-nullable. Result: Should compile on the Xcode 13 GM again. (cherry picked from commit fb48bdd)
Work around Xcode 13 GM SDK issues. (apple#1964) Motivation: This is a backport of apple#1956. Xcode 13 GM shipped with a Swift overlay for libsystem in macOS that marked free's first argument as non-nullable. This leads to an awkward breakage for us, because we're trying to hold a reference to free as a function pointer, and to do that we had an explicit type annotation. We'd like to keep NIO compiling in Xcode 13 GM. Modifications: - Defined the free function as a thunk that passes through to the underlying OS free call, but takes its first argument as non-nullable. Result: Should compile on the Xcode 13 GM again. Co-authored-by: Cory Benfield <[email protected]>
Work around Xcode 13 GM SDK issues. (apple#1956) Motivation: Xcode 13 GM shipped with a Swift overlay for libsystem in macOS that marked free's first argument as non-nullable. This leads to an awkward breakage for us, because we're trying to hold a reference to free as a function pointer, and to do that we had an explicit type annotation. We'd like to keep NIO compiling in Xcode 13 GM. Modifications: - Defined the free function as a thunk that passes through to the underlying OS free call, but takes its first argument as non-nullable. Result: Should compile on the Xcode 13 GM again.
Clarify the support status of NIO1 (apple#1949) Motivation: It's currently unclear that SwiftNIO1 is end of life. Modifications: Update the README to set a deadline on patches to NIO1 Result: Everyone knows where the core team stands on supporting NIO1 Co-authored-by: George Barnett <[email protected]>
Add missing implementation of subscript(_ bounds:) to StaticString (a… …pple#1947) Motivation: This is a backport of apple#1893 for SwiftNIO1. Modifications: Add an implementation of subscript(_ bounds:) to StaticString. Result: * StaticString can be sliced without crashing, though in O(n) time. * The package should build with the July 8 2021 snapshot of Swift.
[Concurrency] `completeWithTask` expects to receive a `@Sendable` clo… …sure (apple#1943)
PreviousNext