The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Kitura-NIO, reference master (bf7572), with Swift 6.0 for Linux on 29 Nov 2024 01:24:55 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

[478/510] Compiling tasn_utl.c
[479/510] Compiling bio.c
[480/510] Compiling tasn_typ.c
[481/510] Compiling tasn_enc.c
[482/510] Compiling posix_time.c
[483/510] Compiling tasn_new.c
[484/510] Compiling tasn_dec.c
[485/510] Compiling tasn_fre.c
[486/510] Compiling asn1_par.c
[487/510] Compiling f_string.c
[488/510] Compiling a_utctm.c
[489/510] Compiling f_int.c
[490/510] Compiling asn_pack.c
[491/510] Compiling a_type.c
[492/510] Compiling a_time.c
[493/510] Compiling asn1_lib.c
[494/510] Compiling a_strnid.c
[495/510] Compiling a_strex.c
[496/510] Compiling a_i2d_fp.c
[497/510] Compiling a_octet.c
[498/510] Compiling a_gentm.c
[499/510] Compiling a_mbstr.c
[500/510] Compiling a_object.c
[501/510] Compiling a_d2i_fp.c
[501/510] Write sources
[503/510] Compiling a_int.c
[504/510] Compiling a_dup.c
[505/510] Compiling a_bool.c
[506/510] Compiling a_bitstr.c
[507/510] Compiling bcm.c
[509/529] Compiling Atomics ManagedAtomic.swift
[510/529] Compiling Atomics ManagedAtomicLazyReference.swift
[511/529] Compiling Atomics Primitives.shims.swift
[512/529] Compiling Atomics AtomicInteger.swift
[513/529] Compiling Atomics AtomicOptionalWrappable.swift
[514/529] Compiling Atomics UnsafeAtomic.swift
[515/529] Compiling Atomics UnsafeAtomicLazyReference.swift
[516/531] Compiling Atomics OptionalRawRepresentable.swift
[517/531] Compiling Atomics RawRepresentable.swift
[518/531] Compiling Atomics AtomicBool.swift
[519/531] Compiling Atomics IntegerOperations.swift
[520/531] Compiling Atomics Unmanaged extensions.swift
[521/531] Compiling Atomics AtomicMemoryOrderings.swift
[522/531] Compiling Atomics DoubleWord.swift
[523/531] Compiling Atomics AtomicReference.swift
[524/531] Compiling Atomics AtomicStorage.swift
[525/531] Compiling Atomics AtomicValue.swift
[525/531] Compiling c-nioatomics.c
[526/531] Compiling c-atomics.c
[528/537] Compiling Atomics IntegerConformances.swift
[529/537] Compiling Atomics PointerConformances.swift
[530/537] Compiling Atomics Primitives.native.swift
[531/537] Compiling NIOConcurrencyHelpers lock.swift
[532/537] Emitting module Atomics
[533/538] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[535/538] Emitting module NIOConcurrencyHelpers
[536/538] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[537/538] Compiling NIOConcurrencyHelpers atomics.swift
[538/538] Compiling NIOConcurrencyHelpers NIOLock.swift
[540/599] Compiling NIOCore IO.swift
[541/599] Compiling NIOCore IOData.swift
[542/599] Compiling NIOCore IPProtocol.swift
[543/599] Compiling NIOCore IntegerBitPacking.swift
[544/599] Compiling NIOCore IntegerTypes.swift
[545/599] Compiling NIOCore Interfaces.swift
[546/599] Compiling NIOCore Linux.swift
[547/599] Compiling NIOCore MarkedCircularBuffer.swift
[548/607] Compiling NIOCore AddressedEnvelope.swift
[549/607] Compiling NIOCore AsyncAwaitSupport.swift
[550/607] Compiling NIOCore AsyncChannel.swift
[551/607] Compiling NIOCore AsyncChannelHandler.swift
[552/607] Compiling NIOCore AsyncChannelInboundStream.swift
[553/607] Compiling NIOCore AsyncChannelOutboundWriter.swift
[554/607] Compiling NIOCore NIOAsyncSequenceProducer.swift
[555/607] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[556/607] Compiling NIOCore NIOAsyncWriter.swift
[557/607] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[558/607] Compiling NIOCore SocketAddresses.swift
[559/607] Compiling NIOCore SocketOptionProvider.swift
[560/607] Compiling NIOCore SystemCallHelpers.swift
[561/607] Compiling NIOCore TimeAmount+Duration.swift
[562/607] Compiling NIOCore TypeAssistedChannelHandler.swift
[563/607] Compiling NIOCore UniversalBootstrapSupport.swift
[564/607] Compiling NIOCore Utilities.swift
[565/607] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[566/607] Compiling NIOCore EventLoopFuture+Deprecated.swift
[567/607] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[568/607] Compiling NIOCore EventLoopFuture.swift
[569/607] Compiling NIOCore FileDescriptor.swift
[570/607] Compiling NIOCore FileHandle.swift
[571/607] Compiling NIOCore FileRegion.swift
[572/607] Compiling NIOCore GlobalSingletons.swift
[573/607] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[574/607] Compiling NIOCore BSDSocketAPI.swift
[575/607] Compiling NIOCore ByteBuffer-aux.swift
[576/607] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[577/607] Compiling NIOCore ByteBuffer-conversions.swift
[578/607] Compiling NIOCore ByteBuffer-core.swift
[579/607] Compiling NIOCore ByteBuffer-hex.swift
[580/607] Compiling NIOCore ByteBuffer-int.swift
[581/607] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[582/607] Compiling NIOCore CircularBuffer.swift
[583/607] Compiling NIOCore Codec.swift
[584/607] Compiling NIOCore ConvenienceOptionSupport.swift
[585/607] Compiling NIOCore DeadChannel.swift
[586/607] Compiling NIOCore DispatchQueue+WithFuture.swift
[587/607] Compiling NIOCore EventLoop+Deprecated.swift
[588/607] Compiling NIOCore EventLoop+SerialExecutor.swift
[589/607] Compiling NIOCore EventLoop.swift
[590/607] Compiling NIOCore ByteBuffer-multi-int.swift
[591/607] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[592/607] Compiling NIOCore ByteBuffer-views.swift
[593/607] Compiling NIOCore Channel.swift
[594/607] Compiling NIOCore ChannelHandler.swift
[595/607] Compiling NIOCore ChannelHandlers.swift
[596/607] Compiling NIOCore ChannelInvoker.swift
[597/607] Compiling NIOCore ChannelOption.swift
[598/607] Compiling NIOCore ChannelPipeline.swift
[599/607] Compiling NIOCore MulticastChannel.swift
[600/607] Compiling NIOCore NIOAny.swift
[601/607] Compiling NIOCore NIOCloseOnErrorHandler.swift
[602/607] Compiling NIOCore NIOLoopBound.swift
[603/607] Compiling NIOCore NIOScheduledCallback.swift
[604/607] Compiling NIOCore NIOSendable.swift
[605/607] Compiling NIOCore PointerHelpers.swift
[606/607] Compiling NIOCore RecvByteBufferAllocator.swift
[607/607] Emitting module NIOCore
[609/660] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[610/660] Compiling NIOEmbedded Embedded.swift
[611/660] Compiling NIOEmbedded AsyncTestingChannel.swift
[612/660] Emitting module NIOEmbedded
[614/661] Emitting module NIOPosix
[615/667] Compiling NIOPosix BSDSocketAPICommon.swift
[616/667] Compiling NIOPosix BSDSocketAPIPosix.swift
[617/667] Compiling NIOPosix BSDSocketAPIWindows.swift
[618/667] Compiling NIOPosix BaseSocket.swift
[619/667] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[620/667] Compiling NIOPosix BaseSocketChannel.swift
[621/667] Compiling NIOPosix BaseStreamSocketChannel.swift
[622/667] Compiling NIOPosix ThreadPosix.swift
[623/667] Compiling NIOPosix ThreadWindows.swift
[624/667] Compiling NIOPosix UnsafeTransfer.swift
[625/667] Compiling NIOPosix Utilities.swift
[626/667] Compiling NIOPosix VsockAddress.swift
[627/667] Compiling NIOPosix VsockChannelEvents.swift
[628/667] Compiling NIOPosix Pool.swift
[629/667] Compiling NIOPosix PooledRecvBufferAllocator.swift
[630/667] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[631/667] Compiling NIOPosix PosixSingletons.swift
[632/667] Compiling NIOPosix RawSocketBootstrap.swift
[633/667] Compiling NIOPosix Resolver.swift
[634/667] Compiling NIOPosix Selectable.swift
[635/667] Compiling NIOPosix SelectableChannel.swift
[636/667] Compiling NIOPosix SelectableEventLoop.swift
[637/667] Compiling NIOPosix SelectorEpoll.swift
[638/667] Compiling NIOPosix SelectorGeneric.swift
[639/667] Compiling NIOPosix SelectorKqueue.swift
[640/667] Compiling NIOPosix SelectorUring.swift
[641/667] Compiling NIOPosix ServerSocket.swift
[642/667] Compiling NIOPosix Socket.swift
[643/667] Compiling NIOPosix SocketChannel.swift
[644/667] Compiling NIOPosix SocketProtocols.swift
[645/667] Compiling NIOPosix System.swift
[646/667] Compiling NIOPosix Thread.swift
[647/667] Compiling NIOPosix Bootstrap.swift
[648/667] Compiling NIOPosix ControlMessage.swift
[649/667] Compiling NIOPosix DatagramVectorReadManager.swift
[650/667] Compiling NIOPosix Errors+Any.swift
[651/667] Compiling NIOPosix FileDescriptor.swift
[652/667] Compiling NIOPosix GetaddrinfoResolver.swift
[653/667] Compiling NIOPosix HappyEyeballs.swift
[654/667] Compiling NIOPosix IO.swift
[655/667] Compiling NIOPosix IntegerBitPacking.swift
[656/667] Compiling NIOPosix IntegerTypes.swift
[657/667] Compiling NIOPosix Linux.swift
[658/667] Compiling NIOPosix LinuxCPUSet.swift
[659/667] Compiling NIOPosix LinuxUring.swift
[660/667] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[661/667] Compiling NIOPosix NIOThreadPool.swift
[662/667] Compiling NIOPosix NonBlockingFileIO.swift
[663/667] Compiling NIOPosix PendingDatagramWritesManager.swift
[664/667] Compiling NIOPosix PendingWritesManager.swift
[665/667] Compiling NIOPosix PipeChannel.swift
[666/667] Compiling NIOPosix PipePair.swift
[667/667] Compiling NIOPosix PointerHelpers.swift
[669/670] Emitting module NIO
[670/670] Compiling NIO Exports.swift
[672/698] Compiling NIOTLS TLSEvents.swift
[673/698] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[674/698] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[675/698] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[676/698] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[677/698] Emitting module NIOTLS
[678/698] Compiling NIOTLS NIOTypedApplicationProtocolNegotiationHandler.swift
[679/698] Compiling NIOTLS SNIHandler.swift
[680/698] Compiling NIOTLS ProtocolNegotiationHandlerStateMachine.swift
[682/699] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[683/699] Emitting module NIOFoundationCompat
[685/728] Compiling NIOSSL SSLCertificateExtensions.swift
[686/728] Compiling NIOSSL SSLConnection.swift
[687/730] Compiling NIOSSL IdentityVerification.swift
[688/730] Compiling NIOSSL SSLCertificate.swift
[689/730] Compiling NIOSSL SSLCallbacks.swift
[690/730] Compiling NIOSSL SSLPublicKey.swift
[691/730] Compiling NIOSSL SecurityFrameworkCertificateVerification.swift
[692/730] Compiling NIOSSL String+unsafeUninitializedCapacity.swift
[693/730] Compiling NIOSSL ByteBufferBIO.swift
[694/730] Compiling NIOSSL CustomPrivateKey.swift
[695/730] Compiling NIOSSL SubjectAlternativeName.swift
[696/730] Compiling NIOSSL AndroidCABundle.swift
[697/730] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[698/730] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[699/730] Emitting module NIOHTTP1
[700/730] Compiling NIOSSL NIOSSLServerHandler.swift
[701/730] Compiling NIOSSL ObjectIdentifier.swift
[702/730] Compiling NIOSSL PosixPort.swift
[705/758] Compiling NIOSSL NIOSSLClientHandler.swift
[706/758] Compiling NIOSSL NIOSSLHandler+Configuration.swift
[707/758] Compiling NIOSSL NIOSSLHandler.swift
[708/758] Compiling NIOSSL NIOSSLSecureBytes.swift
[709/758] Compiling NIOSSL RNG.swift
[710/758] Compiling NIOSSL SafeCompare.swift
[711/758] Compiling NIOExtras DebugOutboundEventsHandler.swift
[712/758] Compiling NIOExtras FixedLengthFrameDecoder.swift
[713/758] Compiling NIOExtras LengthFieldBasedFrameDecoder.swift
[714/758] Compiling NIOExtras LengthFieldPrepender.swift
[715/758] Compiling NIOExtras LineBasedFrameDecoder.swift
[716/758] Compiling NIOExtras MarkedCircularBuffer+PopFirstCheckMarked.swift
[717/758] Compiling NIOExtras NIOExtrasError.swift
[718/758] Compiling NIOExtras NIOLengthFieldBitLength.swift
[719/761] Emitting module NIOSSL
[720/761] Compiling NIOSSL SSLErrors.swift
[721/761] Compiling NIOSSL SSLInit.swift
[722/761] Compiling NIOSSL SSLPKCS12Bundle.swift
[723/761] Compiling NIOSSL SSLPrivateKey.swift
[724/761] Compiling NIOWebSocket WebSocketOpcode.swift
[729/764] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[730/764] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[731/764] Compiling NIOExtras NIORequestIdentifiable.swift
[732/764] Compiling NIOExtras PCAPRingBuffer.swift
[733/764] Compiling NIOExtras QuiescingHelper.swift
[734/764] Compiling NIOExtras RequestResponseHandler.swift
[735/764] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[738/764] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[739/764] Compiling NIOWebSocket SHA1.swift
[743/764] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[744/764] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[746/764] Compiling NIOWebSocket WebSocketErrorCodes.swift
[747/764] Compiling NIOWebSocket WebSocketFrame.swift
[748/764] Emitting module NIOWebSocket
[751/765] Emitting module NIOExtras
[761/765] Compiling NIOSSL Zeroization.swift
[762/765] Compiling NIOSSL TLSConfiguration.swift
[763/765] Compiling NIOSSL UniversalBootstrapSupport.swift
[765/766] Compiling NIOExtras RequestResponseWithIDHandler.swift
[766/766] Compiling NIOExtras WritePCAPHandler.swift
[768/792] Compiling KituraNet ServerLifecycleListener.swift
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[769/792] Compiling KituraNet ServerMonitor.swift
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[770/792] Compiling KituraNet ServerState.swift
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[771/795] Compiling KituraNet SPIUtils.swift
[772/795] Compiling KituraNet Server.swift
[773/795] Compiling KituraNet ServerDelegate.swift
[774/795] Compiling KituraNet FastCGI.swift
[775/795] Compiling KituraNet FastCGIServer.swift
[776/795] Compiling KituraNet FastCGIServerRequest.swift
[777/795] Compiling KituraNet FastCGIServerResponse.swift
[778/795] Compiling KituraNet ServerRequest.swift
[779/795] Compiling KituraNet ServerResponse.swift
[780/795] Compiling KituraNet URLParser.swift
[781/795] Emitting module KituraNet
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:153:51: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
151 |         didSet {
152 |             if disableSSLVerification {
153 |                 self.sslConfig = TLSConfiguration.forClient(certificateVerification: .none)
    |                                                   |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
    |                                                   `- note: use 'makeClientConfiguration()' instead
154 |             }
155 |         }
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:25:16: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | ///  - Note: There a single instance of this struct in a server.
24 | public struct ConnectionUpgrader {
25 |     static var instance = ConnectionUpgrader()
   |                |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     /// Determine if any upgraders have been registered
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:44:23: warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |     /// Defines a default response to an over-sized request of HTTP 413: Request Too Long. A message is also
 43 |     /// logged at debug level.
 44 |     public static let defaultRequestSizeResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultRequestSizeResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |         Log.debug("Request from \(clientSource) exceeds size limit of \(limit) bytes. Connection will be closed.")
 46 |         return (.requestTooLong, "")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:51:23: warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     /// Defines a default response when refusing a new connection of HTTP 503: Service Unavailable. A message is
 50 |     /// also logged at debug level.
 51 |     public static let defaultConnectionResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultConnectionResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 |         Log.debug("Rejected connection from \(clientSource): Maximum connection limit of \(limit) reached.")
 53 |         return (.serviceUnavailable, "")
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:163:27: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
161 |
162 |     //counter for no of connections
163 |     var connectionCount = NIOAtomic.makeAtomic(value: 0)
    |                           `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
164 |
165 |     /**
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:727:23: warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
725 |     }
726 |
727 |     public static var eventLoopGroupAlreadyInitialized = HTTPServerError(value: .eventLoopGroupAlreadyInitialized)
    |                       |- warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'eventLoopGroupAlreadyInitialized' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'eventLoopGroupAlreadyInitialized' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
728 | }
729 |
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[782/795] Compiling KituraNet BufferList.swift
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:153:51: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
151 |         didSet {
152 |             if disableSSLVerification {
153 |                 self.sslConfig = TLSConfiguration.forClient(certificateVerification: .none)
    |                                                   |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
    |                                                   `- note: use 'makeClientConfiguration()' instead
154 |             }
155 |         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:545:46: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
543 |         if (percentEncodedURL.scheme)! == "https" {
544 |            isHTTPS = true
545 |            self.sslConfig = TLSConfiguration.forClient(certificateVerification: .none)
    |                                              |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
    |                                              `- note: use 'makeClientConfiguration()' instead
546 |         }
547 |
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:79: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
653 |             .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
654 |             .channelInitializer { channel in
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
    |                                                                               `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                                `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
658 |                     }
659 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                                `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
658 |                     }
659 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
666 |             .channelInitializer { channel in
667 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
668 |                     channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                            `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
669 |                 }
670 |             }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
666 |             .channelInitializer { channel in
667 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
668 |                     channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                            `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
669 |                 }
670 |             }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:747:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
745 |                         // Because ClientRequest.end() is blocking, we mark the current task complete after the new task also completes.
746 |                         DispatchQueue.global().async {
747 |                             request.end()
    |                             `- warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
748 |                             self.clientRequest.waitSemaphore.signal()
749 |                         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:748:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
746 |                         DispatchQueue.global().async {
747 |                             request.end()
748 |                             self.clientRequest.waitSemaphore.signal()
    |                             `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
749 |                         }
750 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:754:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
752 |                         request.maxRedirects = self.clientRequest.maxRedirects - 1
753 |                         DispatchQueue.global().async {
754 |                             request.end()
    |                             `- warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
755 |                             self.clientRequest.waitSemaphore.signal()
756 |                         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:755:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
753 |                         DispatchQueue.global().async {
754 |                             request.end()
755 |                             self.clientRequest.waitSemaphore.signal()
    |                             `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 |                         }
757 |                     }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:761:25: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
759 |                     // The callback may start a new ClientRequest eventually calling wait(), lets invoke the callback on a DispatchQueue
760 |                     DispatchQueue.global().async {
761 |                         self.clientRequest.callback(self.clientResponse)
    |                         `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
762 |                         self.clientRequest.waitSemaphore.signal()
763 |                     }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:767:21: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
765 |             } else {
766 |                 DispatchQueue.global().async {
767 |                     self.clientRequest.callback(self.clientResponse)
    |                     `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
768 |                     self.clientRequest.waitSemaphore.signal()
769 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:25:16: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | ///  - Note: There a single instance of this struct in a server.
24 | public struct ConnectionUpgrader {
25 |     static var instance = ConnectionUpgrader()
   |                |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     /// Determine if any upgraders have been registered
[783/795] Compiling KituraNet ClientRequest.swift
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:153:51: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
151 |         didSet {
152 |             if disableSSLVerification {
153 |                 self.sslConfig = TLSConfiguration.forClient(certificateVerification: .none)
    |                                                   |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
    |                                                   `- note: use 'makeClientConfiguration()' instead
154 |             }
155 |         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:545:46: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
543 |         if (percentEncodedURL.scheme)! == "https" {
544 |            isHTTPS = true
545 |            self.sslConfig = TLSConfiguration.forClient(certificateVerification: .none)
    |                                              |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
    |                                              `- note: use 'makeClientConfiguration()' instead
546 |         }
547 |
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:79: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
653 |             .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
654 |             .channelInitializer { channel in
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
    |                                                                               `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                                `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
658 |                     }
659 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                                `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
658 |                     }
659 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
666 |             .channelInitializer { channel in
667 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
668 |                     channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                            `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
669 |                 }
670 |             }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
666 |             .channelInitializer { channel in
667 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
668 |                     channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                            `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
669 |                 }
670 |             }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:747:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
745 |                         // Because ClientRequest.end() is blocking, we mark the current task complete after the new task also completes.
746 |                         DispatchQueue.global().async {
747 |                             request.end()
    |                             `- warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
748 |                             self.clientRequest.waitSemaphore.signal()
749 |                         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:748:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
746 |                         DispatchQueue.global().async {
747 |                             request.end()
748 |                             self.clientRequest.waitSemaphore.signal()
    |                             `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
749 |                         }
750 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:754:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
752 |                         request.maxRedirects = self.clientRequest.maxRedirects - 1
753 |                         DispatchQueue.global().async {
754 |                             request.end()
    |                             `- warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
755 |                             self.clientRequest.waitSemaphore.signal()
756 |                         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:755:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
753 |                         DispatchQueue.global().async {
754 |                             request.end()
755 |                             self.clientRequest.waitSemaphore.signal()
    |                             `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 |                         }
757 |                     }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:761:25: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
759 |                     // The callback may start a new ClientRequest eventually calling wait(), lets invoke the callback on a DispatchQueue
760 |                     DispatchQueue.global().async {
761 |                         self.clientRequest.callback(self.clientResponse)
    |                         `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
762 |                         self.clientRequest.waitSemaphore.signal()
763 |                     }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:767:21: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
765 |             } else {
766 |                 DispatchQueue.global().async {
767 |                     self.clientRequest.callback(self.clientResponse)
    |                     `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
768 |                     self.clientRequest.waitSemaphore.signal()
769 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:25:16: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | ///  - Note: There a single instance of this struct in a server.
24 | public struct ConnectionUpgrader {
25 |     static var instance = ConnectionUpgrader()
   |                |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     /// Determine if any upgraders have been registered
[784/795] Compiling KituraNet ClientResponse.swift
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:153:51: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
151 |         didSet {
152 |             if disableSSLVerification {
153 |                 self.sslConfig = TLSConfiguration.forClient(certificateVerification: .none)
    |                                                   |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
    |                                                   `- note: use 'makeClientConfiguration()' instead
154 |             }
155 |         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:545:46: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
543 |         if (percentEncodedURL.scheme)! == "https" {
544 |            isHTTPS = true
545 |            self.sslConfig = TLSConfiguration.forClient(certificateVerification: .none)
    |                                              |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
    |                                              `- note: use 'makeClientConfiguration()' instead
546 |         }
547 |
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:79: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
653 |             .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
654 |             .channelInitializer { channel in
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
    |                                                                               `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                                `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
658 |                     }
659 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                                `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
658 |                     }
659 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
666 |             .channelInitializer { channel in
667 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
668 |                     channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                            `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
669 |                 }
670 |             }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
666 |             .channelInitializer { channel in
667 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
668 |                     channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                            `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
669 |                 }
670 |             }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:747:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
745 |                         // Because ClientRequest.end() is blocking, we mark the current task complete after the new task also completes.
746 |                         DispatchQueue.global().async {
747 |                             request.end()
    |                             `- warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
748 |                             self.clientRequest.waitSemaphore.signal()
749 |                         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:748:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
746 |                         DispatchQueue.global().async {
747 |                             request.end()
748 |                             self.clientRequest.waitSemaphore.signal()
    |                             `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
749 |                         }
750 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:754:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
752 |                         request.maxRedirects = self.clientRequest.maxRedirects - 1
753 |                         DispatchQueue.global().async {
754 |                             request.end()
    |                             `- warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
755 |                             self.clientRequest.waitSemaphore.signal()
756 |                         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:755:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
753 |                         DispatchQueue.global().async {
754 |                             request.end()
755 |                             self.clientRequest.waitSemaphore.signal()
    |                             `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 |                         }
757 |                     }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:761:25: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
759 |                     // The callback may start a new ClientRequest eventually calling wait(), lets invoke the callback on a DispatchQueue
760 |                     DispatchQueue.global().async {
761 |                         self.clientRequest.callback(self.clientResponse)
    |                         `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
762 |                         self.clientRequest.waitSemaphore.signal()
763 |                     }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:767:21: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
765 |             } else {
766 |                 DispatchQueue.global().async {
767 |                     self.clientRequest.callback(self.clientResponse)
    |                     `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
768 |                     self.clientRequest.waitSemaphore.signal()
769 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:25:16: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | ///  - Note: There a single instance of this struct in a server.
24 | public struct ConnectionUpgrader {
25 |     static var instance = ConnectionUpgrader()
   |                |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     /// Determine if any upgraders have been registered
[785/795] Compiling KituraNet ConnectionUpgrader.swift
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:153:51: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
151 |         didSet {
152 |             if disableSSLVerification {
153 |                 self.sslConfig = TLSConfiguration.forClient(certificateVerification: .none)
    |                                                   |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
    |                                                   `- note: use 'makeClientConfiguration()' instead
154 |             }
155 |         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:545:46: warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
543 |         if (percentEncodedURL.scheme)! == "https" {
544 |            isHTTPS = true
545 |            self.sslConfig = TLSConfiguration.forClient(certificateVerification: .none)
    |                                              |- warning: 'forClient(cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:certificateChain:privateKey:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeClientConfiguration()'
    |                                              `- note: use 'makeClientConfiguration()' instead
546 |         }
547 |
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:79: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
653 |             .channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
654 |             .channelInitializer { channel in
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
    |                                                                               `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                                `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
658 |                     }
659 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
655 |                 channel.pipeline.addHandler(try! NIOSSLClientHandler(context: self.sslContext!, serverHostname: self.hostName)).flatMap {
656 |                     channel.pipeline.addHTTPClientHandlers().flatMap {
657 |                         channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                                `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
658 |                     }
659 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
666 |             .channelInitializer { channel in
667 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
668 |                     channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                            `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
669 |                 }
670 |             }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
666 |             .channelInitializer { channel in
667 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
668 |                     channel.pipeline.addHandler(HTTPClientHandler(request: self))
    |                                                                            `- warning: capture of 'self' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
669 |                 }
670 |             }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:747:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
745 |                         // Because ClientRequest.end() is blocking, we mark the current task complete after the new task also completes.
746 |                         DispatchQueue.global().async {
747 |                             request.end()
    |                             `- warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
748 |                             self.clientRequest.waitSemaphore.signal()
749 |                         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:748:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
746 |                         DispatchQueue.global().async {
747 |                             request.end()
748 |                             self.clientRequest.waitSemaphore.signal()
    |                             `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
749 |                         }
750 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:754:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | ````
 60 | */
 61 | public class ClientRequest {
    |              `- note: class 'ClientRequest' does not conform to the 'Sendable' protocol
 62 |
 63 |     /**
    :
752 |                         request.maxRedirects = self.clientRequest.maxRedirects - 1
753 |                         DispatchQueue.global().async {
754 |                             request.end()
    |                             `- warning: capture of 'request' with non-sendable type 'ClientRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
755 |                             self.clientRequest.waitSemaphore.signal()
756 |                         }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:755:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
753 |                         DispatchQueue.global().async {
754 |                             request.end()
755 |                             self.clientRequest.waitSemaphore.signal()
    |                             `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
756 |                         }
757 |                     }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:761:25: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
759 |                     // The callback may start a new ClientRequest eventually calling wait(), lets invoke the callback on a DispatchQueue
760 |                     DispatchQueue.global().async {
761 |                         self.clientRequest.callback(self.clientResponse)
    |                         `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
762 |                         self.clientRequest.waitSemaphore.signal()
763 |                     }
/host/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:767:21: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
690 |
691 | /// The ChannelInboundHandler for ClientRequest
692 | class HTTPClientHandler: ChannelInboundHandler {
    |       `- note: class 'HTTPClientHandler' does not conform to the 'Sendable' protocol
693 |
694 |      /// The ClientRequest for which we installed this handler
    :
765 |             } else {
766 |                 DispatchQueue.global().async {
767 |                     self.clientRequest.callback(self.clientResponse)
    |                     `- warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
768 |                     self.clientRequest.waitSemaphore.signal()
769 |                 }
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:25:16: warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 | ///  - Note: There a single instance of this struct in a server.
24 | public struct ConnectionUpgrader {
25 |     static var instance = ConnectionUpgrader()
   |                |- warning: static property 'instance' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'instance' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'instance' with '@MainActor' if property should only be accessed from the main actor
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 |     /// Determine if any upgraders have been registered
[786/795] Compiling KituraNet HTTPServerResponse.swift
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:293:17: warning: capture of 'task' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 |         } else {
292 |             return self.submit {
293 |                 task()
    |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
294 |             }
295 |         }
[787/795] Compiling KituraNet HeadersContainer.swift
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:293:17: warning: capture of 'task' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 |         } else {
292 |             return self.submit {
293 |                 task()
    |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
294 |             }
295 |         }
[788/795] Compiling KituraNet KeepAliveState.swift
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:293:17: warning: capture of 'task' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
291 |         } else {
292 |             return self.submit {
293 |                 task()
    |                 |- warning: capture of 'task' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
294 |             }
295 |         }
[789/795] Compiling KituraNet SSLConfiguration.swift
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:46:41: warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
44 |             // TODO: Consider other configuration options
45 |             if let certificateFilePath = certificateFilePath, let keyFilePath = keyFilePath {
46 |                 return TLSConfiguration.forServer(certificateChain: [.file(certificateFilePath)], privateKey: .file(keyFilePath))
   |                                         |- warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
   |                                         `- note: use 'makeServerConfiguration(certificateChain:privateKey:)' instead
47 |             } else {
48 |                 /// TLSConfiguration for PKCS#12 formatted certificate
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:46:71: warning: 'file' is deprecated: Use 'NIOSSLCertificate.fromPEMFile(_:)' to load the certificate(s) and use the '.certificate(NIOSSLCertificate)' case to provide them as a source
44 |             // TODO: Consider other configuration options
45 |             if let certificateFilePath = certificateFilePath, let keyFilePath = keyFilePath {
46 |                 return TLSConfiguration.forServer(certificateChain: [.file(certificateFilePath)], privateKey: .file(keyFilePath))
   |                                                                       `- warning: 'file' is deprecated: Use 'NIOSSLCertificate.fromPEMFile(_:)' to load the certificate(s) and use the '.certificate(NIOSSLCertificate)' case to provide them as a source
47 |             } else {
48 |                 /// TLSConfiguration for PKCS#12 formatted certificate
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:46:112: warning: 'file' is deprecated: Use 'NIOSSLPrivateKeySource.privateKey(NIOSSLPrivateKey)' to set private key
44 |             // TODO: Consider other configuration options
45 |             if let certificateFilePath = certificateFilePath, let keyFilePath = keyFilePath {
46 |                 return TLSConfiguration.forServer(certificateChain: [.file(certificateFilePath)], privateKey: .file(keyFilePath))
   |                                                                                                                `- warning: 'file' is deprecated: Use 'NIOSSLPrivateKeySource.privateKey(NIOSSLPrivateKey)' to set private key
47 |             } else {
48 |                 /// TLSConfiguration for PKCS#12 formatted certificate
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:56:45: warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
54 |                         sslCertificateSource.append(.certificate($0))
55 |                     }
56 |                     return TLSConfiguration.forServer(certificateChain: sslCertificateSource, privateKey: .privateKey(pkcs12Bundle.privateKey))
   |                                             |- warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
   |                                             `- note: use 'makeServerConfiguration(certificateChain:privateKey:)' instead
57 |                 } catch let error {
58 |                     Log.error("Error creating the TLS server configuration: \(error)")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:44:23: warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |     /// Defines a default response to an over-sized request of HTTP 413: Request Too Long. A message is also
 43 |     /// logged at debug level.
 44 |     public static let defaultRequestSizeResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultRequestSizeResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |         Log.debug("Request from \(clientSource) exceeds size limit of \(limit) bytes. Connection will be closed.")
 46 |         return (.requestTooLong, "")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:51:23: warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     /// Defines a default response when refusing a new connection of HTTP 503: Service Unavailable. A message is
 50 |     /// also logged at debug level.
 51 |     public static let defaultConnectionResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultConnectionResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 |         Log.debug("Rejected connection from \(clientSource): Maximum connection limit of \(limit) reached.")
 53 |         return (.serviceUnavailable, "")
[790/795] Compiling KituraNet ServerOptions.swift
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:46:41: warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
44 |             // TODO: Consider other configuration options
45 |             if let certificateFilePath = certificateFilePath, let keyFilePath = keyFilePath {
46 |                 return TLSConfiguration.forServer(certificateChain: [.file(certificateFilePath)], privateKey: .file(keyFilePath))
   |                                         |- warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
   |                                         `- note: use 'makeServerConfiguration(certificateChain:privateKey:)' instead
47 |             } else {
48 |                 /// TLSConfiguration for PKCS#12 formatted certificate
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:46:71: warning: 'file' is deprecated: Use 'NIOSSLCertificate.fromPEMFile(_:)' to load the certificate(s) and use the '.certificate(NIOSSLCertificate)' case to provide them as a source
44 |             // TODO: Consider other configuration options
45 |             if let certificateFilePath = certificateFilePath, let keyFilePath = keyFilePath {
46 |                 return TLSConfiguration.forServer(certificateChain: [.file(certificateFilePath)], privateKey: .file(keyFilePath))
   |                                                                       `- warning: 'file' is deprecated: Use 'NIOSSLCertificate.fromPEMFile(_:)' to load the certificate(s) and use the '.certificate(NIOSSLCertificate)' case to provide them as a source
47 |             } else {
48 |                 /// TLSConfiguration for PKCS#12 formatted certificate
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:46:112: warning: 'file' is deprecated: Use 'NIOSSLPrivateKeySource.privateKey(NIOSSLPrivateKey)' to set private key
44 |             // TODO: Consider other configuration options
45 |             if let certificateFilePath = certificateFilePath, let keyFilePath = keyFilePath {
46 |                 return TLSConfiguration.forServer(certificateChain: [.file(certificateFilePath)], privateKey: .file(keyFilePath))
   |                                                                                                                `- warning: 'file' is deprecated: Use 'NIOSSLPrivateKeySource.privateKey(NIOSSLPrivateKey)' to set private key
47 |             } else {
48 |                 /// TLSConfiguration for PKCS#12 formatted certificate
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:56:45: warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
54 |                         sslCertificateSource.append(.certificate($0))
55 |                     }
56 |                     return TLSConfiguration.forServer(certificateChain: sslCertificateSource, privateKey: .privateKey(pkcs12Bundle.privateKey))
   |                                             |- warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
   |                                             `- note: use 'makeServerConfiguration(certificateChain:privateKey:)' instead
57 |                 } catch let error {
58 |                     Log.error("Error creating the TLS server configuration: \(error)")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:44:23: warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |     /// Defines a default response to an over-sized request of HTTP 413: Request Too Long. A message is also
 43 |     /// logged at debug level.
 44 |     public static let defaultRequestSizeResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultRequestSizeResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |         Log.debug("Request from \(clientSource) exceeds size limit of \(limit) bytes. Connection will be closed.")
 46 |         return (.requestTooLong, "")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:51:23: warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     /// Defines a default response when refusing a new connection of HTTP 503: Service Unavailable. A message is
 50 |     /// also logged at debug level.
 51 |     public static let defaultConnectionResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultConnectionResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 |         Log.debug("Rejected connection from \(clientSource): Maximum connection limit of \(limit) reached.")
 53 |         return (.serviceUnavailable, "")
[791/795] Compiling KituraNet ListenerGroup.swift
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:46:41: warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
44 |             // TODO: Consider other configuration options
45 |             if let certificateFilePath = certificateFilePath, let keyFilePath = keyFilePath {
46 |                 return TLSConfiguration.forServer(certificateChain: [.file(certificateFilePath)], privateKey: .file(keyFilePath))
   |                                         |- warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
   |                                         `- note: use 'makeServerConfiguration(certificateChain:privateKey:)' instead
47 |             } else {
48 |                 /// TLSConfiguration for PKCS#12 formatted certificate
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:46:71: warning: 'file' is deprecated: Use 'NIOSSLCertificate.fromPEMFile(_:)' to load the certificate(s) and use the '.certificate(NIOSSLCertificate)' case to provide them as a source
44 |             // TODO: Consider other configuration options
45 |             if let certificateFilePath = certificateFilePath, let keyFilePath = keyFilePath {
46 |                 return TLSConfiguration.forServer(certificateChain: [.file(certificateFilePath)], privateKey: .file(keyFilePath))
   |                                                                       `- warning: 'file' is deprecated: Use 'NIOSSLCertificate.fromPEMFile(_:)' to load the certificate(s) and use the '.certificate(NIOSSLCertificate)' case to provide them as a source
47 |             } else {
48 |                 /// TLSConfiguration for PKCS#12 formatted certificate
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:46:112: warning: 'file' is deprecated: Use 'NIOSSLPrivateKeySource.privateKey(NIOSSLPrivateKey)' to set private key
44 |             // TODO: Consider other configuration options
45 |             if let certificateFilePath = certificateFilePath, let keyFilePath = keyFilePath {
46 |                 return TLSConfiguration.forServer(certificateChain: [.file(certificateFilePath)], privateKey: .file(keyFilePath))
   |                                                                                                                `- warning: 'file' is deprecated: Use 'NIOSSLPrivateKeySource.privateKey(NIOSSLPrivateKey)' to set private key
47 |             } else {
48 |                 /// TLSConfiguration for PKCS#12 formatted certificate
/host/spi-builder-workspace/Sources/KituraNet/HTTP/SSLConfiguration.swift:56:45: warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
54 |                         sslCertificateSource.append(.certificate($0))
55 |                     }
56 |                     return TLSConfiguration.forServer(certificateChain: sslCertificateSource, privateKey: .privateKey(pkcs12Bundle.privateKey))
   |                                             |- warning: 'forServer(certificateChain:privateKey:cipherSuites:minimumTLSVersion:maximumTLSVersion:certificateVerification:trustRoots:applicationProtocols:shutdownTimeout:keyLogCallback:)' is deprecated: renamed to 'makeServerConfiguration(certificateChain:privateKey:)'
   |                                             `- note: use 'makeServerConfiguration(certificateChain:privateKey:)' instead
57 |                 } catch let error {
58 |                     Log.error("Error creating the TLS server configuration: \(error)")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:44:23: warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |     /// Defines a default response to an over-sized request of HTTP 413: Request Too Long. A message is also
 43 |     /// logged at debug level.
 44 |     public static let defaultRequestSizeResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultRequestSizeResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |         Log.debug("Request from \(clientSource) exceeds size limit of \(limit) bytes. Connection will be closed.")
 46 |         return (.requestTooLong, "")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:51:23: warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     /// Defines a default response when refusing a new connection of HTTP 503: Service Unavailable. A message is
 50 |     /// also logged at debug level.
 51 |     public static let defaultConnectionResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultConnectionResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 |         Log.debug("Rejected connection from \(clientSource): Maximum connection limit of \(limit) reached.")
 53 |         return (.serviceUnavailable, "")
[792/795] Compiling KituraNet HTTP.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:44:23: warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |     /// Defines a default response to an over-sized request of HTTP 413: Request Too Long. A message is also
 43 |     /// logged at debug level.
 44 |     public static let defaultRequestSizeResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultRequestSizeResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |         Log.debug("Request from \(clientSource) exceeds size limit of \(limit) bytes. Connection will be closed.")
 46 |         return (.requestTooLong, "")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:51:23: warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     /// Defines a default response when refusing a new connection of HTTP 503: Service Unavailable. A message is
 50 |     /// also logged at debug level.
 51 |     public static let defaultConnectionResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultConnectionResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 |         Log.debug("Rejected connection from \(clientSource): Maximum connection limit of \(limit) reached.")
 53 |         return (.serviceUnavailable, "")
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:163:27: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
161 |
162 |     //counter for no of connections
163 |     var connectionCount = NIOAtomic.makeAtomic(value: 0)
    |                           `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
164 |
165 |     /**
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:145:43: warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
    :
143 |             //Make sure we use the latest delegate registered with the server
144 |             DispatchQueue.global().async {
145 |                 guard let serverRequest = self.serverRequest, let serverResponse = self.serverResponse else { return }
    |                                           `- warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |                 let delegate = self.server.delegate ?? HTTPDummyServerDelegate()
147 |                 Monitor.delegate?.started(request: serverRequest, response: serverResponse)
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:727:23: warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
725 |     }
726 |
727 |     public static var eventLoopGroupAlreadyInitialized = HTTPServerError(value: .eventLoopGroupAlreadyInitialized)
    |                       |- warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'eventLoopGroupAlreadyInitialized' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'eventLoopGroupAlreadyInitialized' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
728 | }
729 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:231:20: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |         return channel.eventLoop.submit {
230 |             let request = HTTPServerRequest(channel: channel, requestHead: request, enableSSL: false)
231 |             return webSocketHandlerFactory.handler(for: request)
    |                    `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 |                 return channel.pipeline.addHandler(handler).flatMap {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 return channel.pipeline.addHandler(handler).flatMap {
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
    |                                        `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 return channel.pipeline.addHandler(handler).flatMap {
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
    |                                        `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
    |                                                                                         `- warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
237 |                     } else {
238 |                         // No extensions. We must return success.
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandler.swift:20:17: note: protocol 'ChannelHandler' does not conform to the 'Sendable' protocol
 18 | ///
 19 | /// You should _never_ implement this protocol directly. Please implement one of its sub-protocols.
 20 | public protocol ChannelHandler: AnyObject {
    |                 `- note: protocol 'ChannelHandler' does not conform to the 'Sendable' protocol
 21 |     /// Called when this `ChannelHandler` is added to the `ChannelPipeline`.
 22 |     ///
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 15 |  */
 16 |
 17 | import NIO
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 18 | import NIOHTTP1
 19 | import Dispatch
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:351:17: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
349 |             .serverChannelInitializer { channel in
350 |                 // Adding the quiescing helper will help us do a graceful stop()
351 |                 self.quiescingHelper = ServerQuiescingHelper(group: self.eventLoopGroup)
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
352 |                 return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
353 |             }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:355:59: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
353 |             }
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
    |                                                           `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
    |                                                                             `- warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
358 |                 })
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:31:17: note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
 16 |
 17 | import NIO
 18 | import NIOHTTP1
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
 19 | import Dispatch
 20 | import NIOSSL
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: reference to captured var 'upgraders' in concurrently-executing code; this is an error in the Swift 6 language mode
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
    |                                                                             `- warning: reference to captured var 'upgraders' in concurrently-executing code; this is an error in the Swift 6 language mode
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
358 |                 })
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:357:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
    |                                                        `- warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 |                 })
359 |                 return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:24:16: note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:360:50: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
358 |                 })
359 |                 return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
360 |                     if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
    |                                                  `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                         _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 |                     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                         _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 |                     }
363 |                     return channel.pipeline.addHandler(httpHandler)
    |                                                        `- warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 }
365 |             }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:24:16: note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:523:13: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
521 |         quiescingHelper.initiateShutdown(promise: fullShutdownPromise)
522 |         fullShutdownPromise.futureResult.whenComplete { _ in
523 |             self.state = .stopped
    |             `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
524 |         }
525 |     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:639:146: warning: passing non-sendable parameter 'shouldUpgrade' to function expecting a @Sendable closure
635 |
636 |     public init(maxFrameSize: Int, automaticErrorHandling: Bool = true,
637 |                 shouldUpgrade: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>,
    |                 `- note: parameter 'shouldUpgrade' is implicitly non-sendable
638 |                 upgradePipelineHandler: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<Void>) {
639 |         _wrappedUpgrader = NIOWebSocketServerUpgrader(maxFrameSize: maxFrameSize, automaticErrorHandling: automaticErrorHandling, shouldUpgrade: shouldUpgrade,
    |                                                                                                                                                  `- warning: passing non-sendable parameter 'shouldUpgrade' to function expecting a @Sendable closure
640 |                                              upgradePipelineHandler: upgradePipelineHandler)
641 |     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:640:70: warning: passing non-sendable parameter 'upgradePipelineHandler' to function expecting a @Sendable closure
636 |     public init(maxFrameSize: Int, automaticErrorHandling: Bool = true,
637 |                 shouldUpgrade: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>,
638 |                 upgradePipelineHandler: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<Void>) {
    |                 `- note: parameter 'upgradePipelineHandler' is implicitly non-sendable
639 |         _wrappedUpgrader = NIOWebSocketServerUpgrader(maxFrameSize: maxFrameSize, automaticErrorHandling: automaticErrorHandling, shouldUpgrade: shouldUpgrade,
640 |                                              upgradePipelineHandler: upgradePipelineHandler)
    |                                                                      `- warning: passing non-sendable parameter 'upgradePipelineHandler' to function expecting a @Sendable closure
641 |     }
642 |
[793/795] Compiling KituraNet HTTPRequestHandler.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:44:23: warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |     /// Defines a default response to an over-sized request of HTTP 413: Request Too Long. A message is also
 43 |     /// logged at debug level.
 44 |     public static let defaultRequestSizeResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultRequestSizeResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |         Log.debug("Request from \(clientSource) exceeds size limit of \(limit) bytes. Connection will be closed.")
 46 |         return (.requestTooLong, "")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:51:23: warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     /// Defines a default response when refusing a new connection of HTTP 503: Service Unavailable. A message is
 50 |     /// also logged at debug level.
 51 |     public static let defaultConnectionResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultConnectionResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 |         Log.debug("Rejected connection from \(clientSource): Maximum connection limit of \(limit) reached.")
 53 |         return (.serviceUnavailable, "")
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:163:27: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
161 |
162 |     //counter for no of connections
163 |     var connectionCount = NIOAtomic.makeAtomic(value: 0)
    |                           `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
164 |
165 |     /**
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:145:43: warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
    :
143 |             //Make sure we use the latest delegate registered with the server
144 |             DispatchQueue.global().async {
145 |                 guard let serverRequest = self.serverRequest, let serverResponse = self.serverResponse else { return }
    |                                           `- warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |                 let delegate = self.server.delegate ?? HTTPDummyServerDelegate()
147 |                 Monitor.delegate?.started(request: serverRequest, response: serverResponse)
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:727:23: warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
725 |     }
726 |
727 |     public static var eventLoopGroupAlreadyInitialized = HTTPServerError(value: .eventLoopGroupAlreadyInitialized)
    |                       |- warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'eventLoopGroupAlreadyInitialized' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'eventLoopGroupAlreadyInitialized' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
728 | }
729 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:231:20: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |         return channel.eventLoop.submit {
230 |             let request = HTTPServerRequest(channel: channel, requestHead: request, enableSSL: false)
231 |             return webSocketHandlerFactory.handler(for: request)
    |                    `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 |                 return channel.pipeline.addHandler(handler).flatMap {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 return channel.pipeline.addHandler(handler).flatMap {
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
    |                                        `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 return channel.pipeline.addHandler(handler).flatMap {
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
    |                                        `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
    |                                                                                         `- warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
237 |                     } else {
238 |                         // No extensions. We must return success.
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandler.swift:20:17: note: protocol 'ChannelHandler' does not conform to the 'Sendable' protocol
 18 | ///
 19 | /// You should _never_ implement this protocol directly. Please implement one of its sub-protocols.
 20 | public protocol ChannelHandler: AnyObject {
    |                 `- note: protocol 'ChannelHandler' does not conform to the 'Sendable' protocol
 21 |     /// Called when this `ChannelHandler` is added to the `ChannelPipeline`.
 22 |     ///
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 15 |  */
 16 |
 17 | import NIO
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 18 | import NIOHTTP1
 19 | import Dispatch
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:351:17: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
349 |             .serverChannelInitializer { channel in
350 |                 // Adding the quiescing helper will help us do a graceful stop()
351 |                 self.quiescingHelper = ServerQuiescingHelper(group: self.eventLoopGroup)
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
352 |                 return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
353 |             }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:355:59: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
353 |             }
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
    |                                                           `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
    |                                                                             `- warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
358 |                 })
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:31:17: note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
 16 |
 17 | import NIO
 18 | import NIOHTTP1
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
 19 | import Dispatch
 20 | import NIOSSL
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: reference to captured var 'upgraders' in concurrently-executing code; this is an error in the Swift 6 language mode
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
    |                                                                             `- warning: reference to captured var 'upgraders' in concurrently-executing code; this is an error in the Swift 6 language mode
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
358 |                 })
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:357:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
    |                                                        `- warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 |                 })
359 |                 return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:24:16: note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:360:50: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
358 |                 })
359 |                 return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
360 |                     if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
    |                                                  `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                         _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 |                     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                         _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 |                     }
363 |                     return channel.pipeline.addHandler(httpHandler)
    |                                                        `- warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 }
365 |             }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:24:16: note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:523:13: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
521 |         quiescingHelper.initiateShutdown(promise: fullShutdownPromise)
522 |         fullShutdownPromise.futureResult.whenComplete { _ in
523 |             self.state = .stopped
    |             `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
524 |         }
525 |     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:639:146: warning: passing non-sendable parameter 'shouldUpgrade' to function expecting a @Sendable closure
635 |
636 |     public init(maxFrameSize: Int, automaticErrorHandling: Bool = true,
637 |                 shouldUpgrade: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>,
    |                 `- note: parameter 'shouldUpgrade' is implicitly non-sendable
638 |                 upgradePipelineHandler: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<Void>) {
639 |         _wrappedUpgrader = NIOWebSocketServerUpgrader(maxFrameSize: maxFrameSize, automaticErrorHandling: automaticErrorHandling, shouldUpgrade: shouldUpgrade,
    |                                                                                                                                                  `- warning: passing non-sendable parameter 'shouldUpgrade' to function expecting a @Sendable closure
640 |                                              upgradePipelineHandler: upgradePipelineHandler)
641 |     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:640:70: warning: passing non-sendable parameter 'upgradePipelineHandler' to function expecting a @Sendable closure
636 |     public init(maxFrameSize: Int, automaticErrorHandling: Bool = true,
637 |                 shouldUpgrade: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>,
638 |                 upgradePipelineHandler: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<Void>) {
    |                 `- note: parameter 'upgradePipelineHandler' is implicitly non-sendable
639 |         _wrappedUpgrader = NIOWebSocketServerUpgrader(maxFrameSize: maxFrameSize, automaticErrorHandling: automaticErrorHandling, shouldUpgrade: shouldUpgrade,
640 |                                              upgradePipelineHandler: upgradePipelineHandler)
    |                                                                      `- warning: passing non-sendable parameter 'upgradePipelineHandler' to function expecting a @Sendable closure
641 |     }
642 |
[794/795] Compiling KituraNet HTTPServer.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:44:23: warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |     /// Defines a default response to an over-sized request of HTTP 413: Request Too Long. A message is also
 43 |     /// logged at debug level.
 44 |     public static let defaultRequestSizeResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultRequestSizeResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |         Log.debug("Request from \(clientSource) exceeds size limit of \(limit) bytes. Connection will be closed.")
 46 |         return (.requestTooLong, "")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:51:23: warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     /// Defines a default response when refusing a new connection of HTTP 503: Service Unavailable. A message is
 50 |     /// also logged at debug level.
 51 |     public static let defaultConnectionResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultConnectionResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 |         Log.debug("Rejected connection from \(clientSource): Maximum connection limit of \(limit) reached.")
 53 |         return (.serviceUnavailable, "")
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:163:27: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
161 |
162 |     //counter for no of connections
163 |     var connectionCount = NIOAtomic.makeAtomic(value: 0)
    |                           `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
164 |
165 |     /**
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:145:43: warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
    :
143 |             //Make sure we use the latest delegate registered with the server
144 |             DispatchQueue.global().async {
145 |                 guard let serverRequest = self.serverRequest, let serverResponse = self.serverResponse else { return }
    |                                           `- warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |                 let delegate = self.server.delegate ?? HTTPDummyServerDelegate()
147 |                 Monitor.delegate?.started(request: serverRequest, response: serverResponse)
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:727:23: warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
725 |     }
726 |
727 |     public static var eventLoopGroupAlreadyInitialized = HTTPServerError(value: .eventLoopGroupAlreadyInitialized)
    |                       |- warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'eventLoopGroupAlreadyInitialized' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'eventLoopGroupAlreadyInitialized' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
728 | }
729 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:231:20: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |         return channel.eventLoop.submit {
230 |             let request = HTTPServerRequest(channel: channel, requestHead: request, enableSSL: false)
231 |             return webSocketHandlerFactory.handler(for: request)
    |                    `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 |                 return channel.pipeline.addHandler(handler).flatMap {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 return channel.pipeline.addHandler(handler).flatMap {
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
    |                                        `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 return channel.pipeline.addHandler(handler).flatMap {
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
    |                                        `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
    |                                                                                         `- warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
237 |                     } else {
238 |                         // No extensions. We must return success.
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandler.swift:20:17: note: protocol 'ChannelHandler' does not conform to the 'Sendable' protocol
 18 | ///
 19 | /// You should _never_ implement this protocol directly. Please implement one of its sub-protocols.
 20 | public protocol ChannelHandler: AnyObject {
    |                 `- note: protocol 'ChannelHandler' does not conform to the 'Sendable' protocol
 21 |     /// Called when this `ChannelHandler` is added to the `ChannelPipeline`.
 22 |     ///
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 15 |  */
 16 |
 17 | import NIO
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 18 | import NIOHTTP1
 19 | import Dispatch
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:351:17: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
349 |             .serverChannelInitializer { channel in
350 |                 // Adding the quiescing helper will help us do a graceful stop()
351 |                 self.quiescingHelper = ServerQuiescingHelper(group: self.eventLoopGroup)
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
352 |                 return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
353 |             }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:355:59: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
353 |             }
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
    |                                                           `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
    |                                                                             `- warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
358 |                 })
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:31:17: note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
 16 |
 17 | import NIO
 18 | import NIOHTTP1
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
 19 | import Dispatch
 20 | import NIOSSL
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: reference to captured var 'upgraders' in concurrently-executing code; this is an error in the Swift 6 language mode
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
    |                                                                             `- warning: reference to captured var 'upgraders' in concurrently-executing code; this is an error in the Swift 6 language mode
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
358 |                 })
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:357:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
    |                                                        `- warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 |                 })
359 |                 return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:24:16: note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:360:50: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
358 |                 })
359 |                 return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
360 |                     if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
    |                                                  `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                         _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 |                     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                         _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 |                     }
363 |                     return channel.pipeline.addHandler(httpHandler)
    |                                                        `- warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 }
365 |             }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:24:16: note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:523:13: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
521 |         quiescingHelper.initiateShutdown(promise: fullShutdownPromise)
522 |         fullShutdownPromise.futureResult.whenComplete { _ in
523 |             self.state = .stopped
    |             `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
524 |         }
525 |     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:639:146: warning: passing non-sendable parameter 'shouldUpgrade' to function expecting a @Sendable closure
635 |
636 |     public init(maxFrameSize: Int, automaticErrorHandling: Bool = true,
637 |                 shouldUpgrade: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>,
    |                 `- note: parameter 'shouldUpgrade' is implicitly non-sendable
638 |                 upgradePipelineHandler: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<Void>) {
639 |         _wrappedUpgrader = NIOWebSocketServerUpgrader(maxFrameSize: maxFrameSize, automaticErrorHandling: automaticErrorHandling, shouldUpgrade: shouldUpgrade,
    |                                                                                                                                                  `- warning: passing non-sendable parameter 'shouldUpgrade' to function expecting a @Sendable closure
640 |                                              upgradePipelineHandler: upgradePipelineHandler)
641 |     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:640:70: warning: passing non-sendable parameter 'upgradePipelineHandler' to function expecting a @Sendable closure
636 |     public init(maxFrameSize: Int, automaticErrorHandling: Bool = true,
637 |                 shouldUpgrade: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>,
638 |                 upgradePipelineHandler: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<Void>) {
    |                 `- note: parameter 'upgradePipelineHandler' is implicitly non-sendable
639 |         _wrappedUpgrader = NIOWebSocketServerUpgrader(maxFrameSize: maxFrameSize, automaticErrorHandling: automaticErrorHandling, shouldUpgrade: shouldUpgrade,
640 |                                              upgradePipelineHandler: upgradePipelineHandler)
    |                                                                      `- warning: passing non-sendable parameter 'upgradePipelineHandler' to function expecting a @Sendable closure
641 |     }
642 |
[795/795] Compiling KituraNet HTTPServerRequest.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:44:23: warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 42 |     /// Defines a default response to an over-sized request of HTTP 413: Request Too Long. A message is also
 43 |     /// logged at debug level.
 44 |     public static let defaultRequestSizeResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultRequestSizeResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultRequestSizeResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |         Log.debug("Request from \(clientSource) exceeds size limit of \(limit) bytes. Connection will be closed.")
 46 |         return (.requestTooLong, "")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/KituraNet/HTTP/ServerOptions.swift:51:23: warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
 49 |     /// Defines a default response when refusing a new connection of HTTP 503: Service Unavailable. A message is
 50 |     /// also logged at debug level.
 51 |     public static let defaultConnectionResponseGenerator: (Int, String) -> (HTTPStatusCode, String)? = { (limit, clientSource) in
    |                       |- warning: static property 'defaultConnectionResponseGenerator' is not concurrency-safe because non-'Sendable' type '(Int, String) -> (HTTPStatusCode, String)?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'defaultConnectionResponseGenerator' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 52 |         Log.debug("Rejected connection from \(clientSource): Maximum connection limit of \(limit) reached.")
 53 |         return (.serviceUnavailable, "")
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:163:27: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
161 |
162 |     //counter for no of connections
163 |     var connectionCount = NIOAtomic.makeAtomic(value: 0)
    |                           `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
164 |
165 |     /**
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:145:43: warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
    :
143 |             //Make sure we use the latest delegate registered with the server
144 |             DispatchQueue.global().async {
145 |                 guard let serverRequest = self.serverRequest, let serverResponse = self.serverResponse else { return }
    |                                           `- warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |                 let delegate = self.server.delegate ?? HTTPDummyServerDelegate()
147 |                 Monitor.delegate?.started(request: serverRequest, response: serverResponse)
/host/spi-builder-workspace/Sources/KituraNet/Server/ServerMonitor.swift:36:23: warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public struct Monitor {
35 |     /// The reference to the server wide monitoring delegate.
36 |     public static var delegate: ServerMonitor?
   |                       |- warning: static property 'delegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'delegate' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'delegate' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:727:23: warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
725 |     }
726 |
727 |     public static var eventLoopGroupAlreadyInitialized = HTTPServerError(value: .eventLoopGroupAlreadyInitialized)
    |                       |- warning: static property 'eventLoopGroupAlreadyInitialized' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'eventLoopGroupAlreadyInitialized' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'eventLoopGroupAlreadyInitialized' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
728 | }
729 |
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:231:20: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |         return channel.eventLoop.submit {
230 |             let request = HTTPServerRequest(channel: channel, requestHead: request, enableSSL: false)
231 |             return webSocketHandlerFactory.handler(for: request)
    |                    `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 |                 return channel.pipeline.addHandler(handler).flatMap {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 return channel.pipeline.addHandler(handler).flatMap {
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
    |                                        `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 return channel.pipeline.addHandler(handler).flatMap {
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
    |                                        `- warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 |                     } else {
/host/spi-builder-workspace/Sources/KituraNet/ConnectionUpgrader.swift:57:17: note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
55 | /// to the desired protocol.
56 |
57 | public protocol ProtocolHandlerFactory {
   |                 `- note: protocol 'ProtocolHandlerFactory' does not conform to the 'Sendable' protocol
58 |     /// Name of the protocol
59 |     var name: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 |                     if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 |                         let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
236 |                         return channel.pipeline.addHandlers(handlers, position: .before(handler))
    |                                                                                         `- warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
237 |                     } else {
238 |                         // No extensions. We must return success.
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelHandler.swift:20:17: note: protocol 'ChannelHandler' does not conform to the 'Sendable' protocol
 18 | ///
 19 | /// You should _never_ implement this protocol directly. Please implement one of its sub-protocols.
 20 | public protocol ChannelHandler: AnyObject {
    |                 `- note: protocol 'ChannelHandler' does not conform to the 'Sendable' protocol
 21 |     /// Called when this `ChannelHandler` is added to the `ChannelPipeline`.
 22 |     ///
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 15 |  */
 16 |
 17 | import NIO
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 18 | import NIOHTTP1
 19 | import Dispatch
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:351:17: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
349 |             .serverChannelInitializer { channel in
350 |                 // Adding the quiescing helper will help us do a graceful stop()
351 |                 self.quiescingHelper = ServerQuiescingHelper(group: self.eventLoopGroup)
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
352 |                 return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
353 |             }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:355:59: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
353 |             }
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
    |                                                           `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
    |                                                                             `- warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
358 |                 })
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:31:17: note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:18:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
 16 |
 17 | import NIO
 18 | import NIOHTTP1
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
 19 | import Dispatch
 20 | import NIOSSL
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: reference to captured var 'upgraders' in concurrently-executing code; this is an error in the Swift 6 language mode
354 |             .childChannelInitializer { channel in
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
    |                                                                             `- warning: reference to captured var 'upgraders' in concurrently-executing code; this is an error in the Swift 6 language mode
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
358 |                 })
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:357:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
355 |                 let httpHandler = HTTPRequestHandler(for: self)
356 |                 let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 |                     _ = channel.pipeline.removeHandler(httpHandler)
    |                                                        `- warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 |                 })
359 |                 return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:24:16: note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:360:50: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
358 |                 })
359 |                 return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
360 |                     if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
    |                                                  `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                         _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 |                     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                         _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 |                     }
363 |                     return channel.pipeline.addHandler(httpHandler)
    |                                                        `- warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |                 }
365 |             }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:24:16: note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 22 | import Dispatch
 23 |
 24 | internal class HTTPRequestHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                `- note: class 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
 25 |
 26 |     /// The HTTPServer instance on which this handler is installed
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:523:13: warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 | #endif
 54 |
 55 | public class HTTPServer: Server {
    |              `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
 56 |
 57 |     public typealias ServerType = HTTPServer
    :
521 |         quiescingHelper.initiateShutdown(promise: fullShutdownPromise)
522 |         fullShutdownPromise.futureResult.whenComplete { _ in
523 |             self.state = .stopped
    |             `- warning: capture of 'self' with non-sendable type 'HTTPServer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
524 |         }
525 |     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:639:146: warning: passing non-sendable parameter 'shouldUpgrade' to function expecting a @Sendable closure
635 |
636 |     public init(maxFrameSize: Int, automaticErrorHandling: Bool = true,
637 |                 shouldUpgrade: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>,
    |                 `- note: parameter 'shouldUpgrade' is implicitly non-sendable
638 |                 upgradePipelineHandler: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<Void>) {
639 |         _wrappedUpgrader = NIOWebSocketServerUpgrader(maxFrameSize: maxFrameSize, automaticErrorHandling: automaticErrorHandling, shouldUpgrade: shouldUpgrade,
    |                                                                                                                                                  `- warning: passing non-sendable parameter 'shouldUpgrade' to function expecting a @Sendable closure
640 |                                              upgradePipelineHandler: upgradePipelineHandler)
641 |     }
/host/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:640:70: warning: passing non-sendable parameter 'upgradePipelineHandler' to function expecting a @Sendable closure
636 |     public init(maxFrameSize: Int, automaticErrorHandling: Bool = true,
637 |                 shouldUpgrade: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<HTTPHeaders?>,
638 |                 upgradePipelineHandler: @escaping (Channel, HTTPRequestHead) -> EventLoopFuture<Void>) {
    |                 `- note: parameter 'upgradePipelineHandler' is implicitly non-sendable
639 |         _wrappedUpgrader = NIOWebSocketServerUpgrader(maxFrameSize: maxFrameSize, automaticErrorHandling: automaticErrorHandling, shouldUpgrade: shouldUpgrade,
640 |                                              upgradePipelineHandler: upgradePipelineHandler)
    |                                                                      `- warning: passing non-sendable parameter 'upgradePipelineHandler' to function expecting a @Sendable closure
641 |     }
642 |
Build complete! (136.81s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.33.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-nio-ssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl.git"
    },
    {
      "identity" : "swift-nio-extras",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-extras.git"
    },
    {
      "identity" : "bluesslservice",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.2",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/BlueSSLService.git"
    },
    {
      "identity" : "loggerapi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Kitura/LoggerAPI.git"
    }
  ],
  "manifest_display_name" : "Kitura-NIO",
  "name" : "Kitura-NIO",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "KituraNet",
      "targets" : [
        "KituraNet"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KituraNetTests",
      "module_type" : "SwiftTarget",
      "name" : "KituraNetTests",
      "path" : "Tests/KituraNetTests",
      "sources" : [
        "BufferListTests.swift",
        "ChannelQuiescingTests.swift",
        "ClientE2ETests.swift",
        "ClientRequestTests.swift",
        "ConnectionLimitTests.swift",
        "HTTPResponseTests.swift",
        "HTTPStatusCodeTests.swift",
        "KituraNIOTest.swift",
        "KituraNetWebSocketUpgrade.swift",
        "LargePayloadTests.swift",
        "LifecycleListenerTests.swift",
        "MiscellaneousTests.swift",
        "MonitoringTests.swift",
        "ParserTests.swift",
        "PipeliningTests.swift",
        "RegressionTests.swift",
        "SSLConfig/SSLConfig.swift",
        "types.swift"
      ],
      "target_dependencies" : [
        "KituraNet"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KituraNet",
      "module_type" : "SwiftTarget",
      "name" : "KituraNet",
      "path" : "Sources/KituraNet",
      "product_dependencies" : [
        "NIO",
        "NIOFoundationCompat",
        "NIOHTTP1",
        "NIOSSL",
        "SSLService",
        "NIOWebSocket",
        "NIOConcurrencyHelpers",
        "NIOExtras",
        "LoggerAPI"
      ],
      "product_memberships" : [
        "KituraNet"
      ],
      "sources" : [
        "BufferList.swift",
        "ClientRequest.swift",
        "ClientResponse.swift",
        "ConnectionUpgrader.swift",
        "FastCGI/FastCGI.swift",
        "FastCGI/FastCGIServer.swift",
        "FastCGI/FastCGIServerRequest.swift",
        "FastCGI/FastCGIServerResponse.swift",
        "HTTP/HTTP.swift",
        "HTTP/HTTPRequestHandler.swift",
        "HTTP/HTTPServer.swift",
        "HTTP/HTTPServerRequest.swift",
        "HTTP/HTTPServerResponse.swift",
        "HTTP/HeadersContainer.swift",
        "HTTP/KeepAliveState.swift",
        "HTTP/SSLConfiguration.swift",
        "HTTP/ServerOptions.swift",
        "ListenerGroup.swift",
        "SPIUtils.swift",
        "Server/Server.swift",
        "Server/ServerDelegate.swift",
        "Server/ServerLifecycleListener.swift",
        "Server/ServerMonitor.swift",
        "Server/ServerState.swift",
        "ServerRequest.swift",
        "ServerResponse.swift",
        "URLParser.swift"
      ],
      "target_dependencies" : [
        "CLinuxHelpers"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CLinuxHelpers",
      "module_type" : "ClangTarget",
      "name" : "CLinuxHelpers",
      "path" : "Sources/CLinuxHelpers",
      "product_memberships" : [
        "KituraNet"
      ],
      "sources" : [
        "ProcessorAffinity.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.