Build Information
Successful build of Kitura-NIO, reference 3.1.1 (bf7572
), with Swift 6.0 for Linux on 29 Nov 2024 01:24:37 UTC.
Swift 6 data race errors: 5
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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_fre.c
[479/510] Compiling tasn_typ.c
[480/510] Compiling tasn_utl.c
[481/510] Compiling tasn_new.c
[482/510] Compiling tasn_enc.c
[483/510] Compiling f_int.c
[484/510] Compiling f_string.c
[485/510] Compiling asn1_par.c
[486/510] Compiling asn_pack.c
[487/510] Compiling posix_time.c
[488/510] Compiling tasn_dec.c
[489/510] Compiling asn1_lib.c
[490/510] Compiling a_time.c
[491/510] Compiling a_utctm.c
[492/510] Compiling a_type.c
[493/510] Compiling a_octet.c
[494/510] Compiling a_strnid.c
[495/510] Compiling a_i2d_fp.c
[496/510] Compiling a_mbstr.c
[497/510] Compiling a_object.c
[498/510] Compiling a_gentm.c
[498/510] Compiling a_strex.c
[500/510] Compiling a_int.c
[501/510] Compiling a_dup.c
[502/510] Write sources
[503/510] Compiling a_d2i_fp.c
[504/510] Compiling CLinuxHelpers ProcessorAffinity.c
[505/510] Compiling a_bool.c
[506/510] Compiling a_bitstr.c
[507/529] Compiling bcm.c
[509/529] Compiling Atomics UnsafeAtomic.swift
[510/529] Compiling Atomics UnsafeAtomicLazyReference.swift
[511/529] Compiling Atomics ManagedAtomic.swift
[512/529] Compiling Atomics ManagedAtomicLazyReference.swift
[513/531] Compiling Atomics AtomicMemoryOrderings.swift
[514/531] Compiling Atomics DoubleWord.swift
[515/531] Compiling Atomics AtomicReference.swift
[516/531] Compiling Atomics AtomicStorage.swift
[517/531] Compiling Atomics AtomicValue.swift
[518/531] Compiling Atomics Primitives.shims.swift
[519/531] Compiling Atomics AtomicInteger.swift
[520/531] Compiling Atomics AtomicOptionalWrappable.swift
[521/531] Compiling Atomics IntegerOperations.swift
[522/531] Compiling Atomics Unmanaged extensions.swift
[522/531] Compiling c-nioatomics.c
[523/531] Compiling c-atomics.c
[525/537] Compiling NIOConcurrencyHelpers NIOLock.swift
[526/537] Compiling NIOConcurrencyHelpers lock.swift
[527/537] Compiling Atomics OptionalRawRepresentable.swift
[528/537] Compiling Atomics RawRepresentable.swift
[529/537] Compiling Atomics AtomicBool.swift
[530/537] Compiling Atomics IntegerConformances.swift
[531/537] Compiling Atomics PointerConformances.swift
[532/537] Compiling Atomics Primitives.native.swift
[533/537] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[534/537] Emitting module NIOConcurrencyHelpers
[535/537] Compiling NIOConcurrencyHelpers atomics.swift
[536/537] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[537/538] Emitting module Atomics
[540/599] Compiling NIOCore MulticastChannel.swift
[541/599] Compiling NIOCore NIOAny.swift
[542/599] Compiling NIOCore NIOCloseOnErrorHandler.swift
[543/599] Compiling NIOCore NIOLoopBound.swift
[544/599] Compiling NIOCore NIOScheduledCallback.swift
[545/599] Compiling NIOCore NIOSendable.swift
[546/599] Compiling NIOCore PointerHelpers.swift
[547/599] Compiling NIOCore RecvByteBufferAllocator.swift
[548/599] Compiling NIOCore IO.swift
[549/599] Compiling NIOCore IOData.swift
[550/599] Compiling NIOCore IPProtocol.swift
[551/599] Compiling NIOCore IntegerBitPacking.swift
[552/599] Compiling NIOCore IntegerTypes.swift
[553/599] Compiling NIOCore Interfaces.swift
[554/599] Compiling NIOCore Linux.swift
[555/599] Compiling NIOCore MarkedCircularBuffer.swift
[556/607] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[557/607] Compiling NIOCore EventLoopFuture+Deprecated.swift
[558/607] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[559/607] Compiling NIOCore EventLoopFuture.swift
[560/607] Compiling NIOCore FileDescriptor.swift
[561/607] Compiling NIOCore FileHandle.swift
[562/607] Compiling NIOCore FileRegion.swift
[563/607] Compiling NIOCore GlobalSingletons.swift
[564/607] Compiling NIOCore CircularBuffer.swift
[565/607] Compiling NIOCore Codec.swift
[566/607] Compiling NIOCore ConvenienceOptionSupport.swift
[567/607] Compiling NIOCore DeadChannel.swift
[568/607] Compiling NIOCore DispatchQueue+WithFuture.swift
[569/607] Compiling NIOCore EventLoop+Deprecated.swift
[570/607] Compiling NIOCore EventLoop+SerialExecutor.swift
[571/607] Compiling NIOCore EventLoop.swift
[572/607] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[573/607] Compiling NIOCore SocketAddresses.swift
[574/607] Compiling NIOCore SocketOptionProvider.swift
[575/607] Compiling NIOCore SystemCallHelpers.swift
[576/607] Compiling NIOCore TimeAmount+Duration.swift
[577/607] Compiling NIOCore TypeAssistedChannelHandler.swift
[578/607] Compiling NIOCore UniversalBootstrapSupport.swift
[579/607] Compiling NIOCore Utilities.swift
[580/607] Compiling NIOCore AddressedEnvelope.swift
[581/607] Compiling NIOCore AsyncAwaitSupport.swift
[582/607] Compiling NIOCore AsyncChannel.swift
[583/607] Compiling NIOCore AsyncChannelHandler.swift
[584/607] Compiling NIOCore AsyncChannelInboundStream.swift
[585/607] Compiling NIOCore AsyncChannelOutboundWriter.swift
[586/607] Compiling NIOCore NIOAsyncSequenceProducer.swift
[587/607] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[588/607] Compiling NIOCore NIOAsyncWriter.swift
[589/607] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[590/607] Compiling NIOCore BSDSocketAPI.swift
[591/607] Compiling NIOCore ByteBuffer-aux.swift
[592/607] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[593/607] Compiling NIOCore ByteBuffer-conversions.swift
[594/607] Compiling NIOCore ByteBuffer-core.swift
[595/607] Compiling NIOCore ByteBuffer-hex.swift
[596/607] Compiling NIOCore ByteBuffer-int.swift
[597/607] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[598/607] Compiling NIOCore ByteBuffer-multi-int.swift
[599/607] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[600/607] Compiling NIOCore ByteBuffer-views.swift
[601/607] Compiling NIOCore Channel.swift
[602/607] Compiling NIOCore ChannelHandler.swift
[603/607] Compiling NIOCore ChannelHandlers.swift
[604/607] Compiling NIOCore ChannelInvoker.swift
[605/607] Compiling NIOCore ChannelOption.swift
[606/607] Compiling NIOCore ChannelPipeline.swift
[607/607] Emitting module NIOCore
[609/660] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[610/660] Compiling NIOEmbedded AsyncTestingChannel.swift
[611/660] Emitting module NIOEmbedded
[612/660] Compiling NIOEmbedded Embedded.swift
[614/661] Compiling NIOPosix BSDSocketAPICommon.swift
[615/661] Compiling NIOPosix BSDSocketAPIPosix.swift
[616/661] Compiling NIOPosix BSDSocketAPIWindows.swift
[617/661] Compiling NIOPosix BaseSocket.swift
[618/661] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[619/661] Compiling NIOPosix BaseSocketChannel.swift
[620/661] Compiling NIOPosix BaseStreamSocketChannel.swift
[621/667] Compiling NIOPosix Pool.swift
[622/667] Compiling NIOPosix PooledRecvBufferAllocator.swift
[623/667] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[624/667] Compiling NIOPosix PosixSingletons.swift
[625/667] Compiling NIOPosix RawSocketBootstrap.swift
[626/667] Compiling NIOPosix Resolver.swift
[627/667] Compiling NIOPosix Selectable.swift
[628/667] Compiling NIOPosix ServerSocket.swift
[629/667] Compiling NIOPosix Socket.swift
[630/667] Compiling NIOPosix SocketChannel.swift
[631/667] Compiling NIOPosix SocketProtocols.swift
[632/667] Compiling NIOPosix System.swift
[633/667] Compiling NIOPosix Thread.swift
[634/667] Compiling NIOPosix SelectableChannel.swift
[635/667] Compiling NIOPosix SelectableEventLoop.swift
[636/667] Compiling NIOPosix SelectorEpoll.swift
[637/667] Compiling NIOPosix SelectorGeneric.swift
[638/667] Compiling NIOPosix SelectorKqueue.swift
[639/667] Compiling NIOPosix SelectorUring.swift
[640/667] Compiling NIOPosix Bootstrap.swift
[641/667] Compiling NIOPosix ControlMessage.swift
[642/667] Compiling NIOPosix DatagramVectorReadManager.swift
[643/667] Compiling NIOPosix Errors+Any.swift
[644/667] Compiling NIOPosix FileDescriptor.swift
[645/667] Compiling NIOPosix GetaddrinfoResolver.swift
[646/667] Compiling NIOPosix HappyEyeballs.swift
[647/667] Emitting module NIOPosix
[648/667] Compiling NIOPosix ThreadPosix.swift
[649/667] Compiling NIOPosix ThreadWindows.swift
[650/667] Compiling NIOPosix UnsafeTransfer.swift
[651/667] Compiling NIOPosix Utilities.swift
[652/667] Compiling NIOPosix VsockAddress.swift
[653/667] Compiling NIOPosix VsockChannelEvents.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] Compiling NIO Exports.swift
[670/670] Emitting module NIO
[672/698] Compiling NIOTLS TLSEvents.swift
[673/698] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[674/698] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[675/698] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[676/698] Compiling NIOTLS ProtocolNegotiationHandlerStateMachine.swift
[677/698] Emitting module NIOTLS
[678/698] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[679/698] Compiling NIOTLS NIOTypedApplicationProtocolNegotiationHandler.swift
[680/698] Compiling NIOTLS SNIHandler.swift
[681/699] Emitting module NIOFoundationCompat
[682/699] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[685/700] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[686/700] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[687/730] Compiling NIOSSL SSLCertificateExtensions.swift
[688/730] Compiling NIOSSL SSLConnection.swift
[689/730] Compiling NIOSSL NIOSSLClientHandler.swift
[690/730] Compiling NIOSSL NIOSSLHandler+Configuration.swift
[691/730] Compiling NIOSSL IdentityVerification.swift
[692/730] Compiling NIOSSL LinuxCABundle.swift
[693/730] Compiling NIOSSL SSLCallbacks.swift
[694/730] Compiling NIOSSL SSLCertificate.swift
[695/730] Emitting module NIOHTTP1
[696/730] Compiling NIOSSL ObjectIdentifier.swift
[697/730] Compiling NIOSSL PosixPort.swift
[698/730] Compiling NIOSSL SSLContext.swift
[699/730] Compiling NIOSSL NIOSSLSecureBytes.swift
[700/730] Compiling NIOSSL AndroidCABundle.swift
[701/730] Compiling NIOSSL ByteBufferBIO.swift
[702/730] Compiling NIOSSL CustomPrivateKey.swift
[704/758] Compiling NIOSSL SSLPublicKey.swift
[705/758] Compiling NIOSSL SecurityFrameworkCertificateVerification.swift
[706/758] Compiling NIOSSL String+unsafeUninitializedCapacity.swift
[707/758] Compiling NIOSSL SubjectAlternativeName.swift
[708/758] Compiling NIOSSL SSLErrors.swift
[709/758] Compiling NIOSSL SSLInit.swift
[710/758] Compiling NIOSSL SSLPKCS12Bundle.swift
[711/758] Compiling NIOSSL SSLPrivateKey.swift
[713/758] Compiling NIOSSL RNG.swift
[714/758] Compiling NIOSSL SafeCompare.swift
[715/761] Compiling NIOWebSocket WebSocketErrorCodes.swift
[716/762] Compiling NIOWebSocket WebSocketOpcode.swift
[717/762] Emitting module NIOSSL
[718/762] Compiling NIOExtras NIORequestIdentifiable.swift
[719/762] Compiling NIOExtras PCAPRingBuffer.swift
[720/764] Compiling NIOExtras LineBasedFrameDecoder.swift
[721/764] Compiling NIOExtras MarkedCircularBuffer+PopFirstCheckMarked.swift
[722/764] Compiling NIOExtras NIOExtrasError.swift
[723/764] Compiling NIOExtras NIOLengthFieldBitLength.swift
[724/764] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[725/764] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[726/764] Compiling NIOExtras DebugInboundEventsHandler.swift
[727/764] Compiling NIOExtras DebugOutboundEventsHandler.swift
[728/764] Compiling NIOExtras FixedLengthFrameDecoder.swift
[729/764] Compiling NIOExtras HTTP1ProxyConnectHandler.swift
[730/764] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[731/764] Compiling NIOExtras QuiescingHelper.swift
[732/764] Compiling NIOExtras RequestResponseHandler.swift
[737/764] Compiling NIOWebSocket WebSocketFrame.swift
[738/764] Emitting module NIOWebSocket
[741/765] Compiling NIOExtras JSONRPCFraming+ContentLengthHeader.swift
[742/765] Compiling NIOExtras JSONRPCFraming.swift
[746/765] Compiling NIOExtras LengthFieldBasedFrameDecoder.swift
[747/765] Compiling NIOExtras LengthFieldPrepender.swift
[748/765] Emitting module NIOExtras
[761/765] Compiling NIOSSL Zeroization.swift
[762/765] Compiling NIOSSL TLSConfiguration.swift
[763/765] Compiling NIOSSL UniversalBootstrapSupport.swift
[764/766] Compiling NIOExtras RequestResponseWithIDHandler.swift
[765/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 FastCGI.swift
[772/795] Compiling KituraNet FastCGIServer.swift
[773/795] Compiling KituraNet FastCGIServerRequest.swift
[774/795] Compiling KituraNet FastCGIServerResponse.swift
[775/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 | }
[776/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 | }
[777/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 | }
[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 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, "")
[787/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, "")
[788/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, "")
[789/795] Compiling KituraNet SPIUtils.swift
[790/795] Compiling KituraNet Server.swift
[791/795] Compiling KituraNet ServerDelegate.swift
[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! (125.47s)
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.