Build Information
Successful build of Kitura-NIO, reference 3.1.1 (bf7572
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 05:13:40 UTC.
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Build Log
[216/496] Compiling ghash-ssse3-x86-apple.S
[217/496] Compiling ghash-neon-armv8-win.S
[218/496] Compiling ghash-neon-armv8-linux.S
[219/496] Compiling co-586-apple.S
[220/496] Compiling ghash-armv4-linux.S
[221/496] Compiling ghash-neon-armv8-apple.S
[222/496] Compiling co-586-linux.S
[223/496] Compiling bn-armv8-win.S
[224/496] Compiling bsaes-armv7-linux.S
[225/496] Compiling bn-armv8-linux.S
[226/496] Compiling bn-armv8-apple.S
[227/496] Compiling bn-586-linux.S
[228/496] Compiling bn-586-apple.S
[229/496] Compiling armv8-mont-linux.S
[230/496] Compiling armv8-mont-win.S
[230/496] Compiling armv8-mont-apple.S
[232/496] Compiling aesv8-gcm-armv8-linux.S
[233/496] Compiling aesv8-gcm-armv8-win.S
[234/496] Compiling armv4-mont-linux.S
[235/496] Compiling aesv8-gcm-armv8-apple.S
[236/496] Compiling aesv8-armv8-linux.S
[237/496] Compiling aesv8-armv8-win.S
[238/496] Compiling aesv8-armv8-apple.S
[239/496] Compiling aesv8-armv7-linux.S
[240/496] Compiling aesni-x86_64-linux.S
[241/496] Compiling aesni-x86_64-apple.S
[241/496] Compiling aesni-x86-linux.S
[243/496] Compiling aesni-x86-apple.S
[244/496] Compiling aesni-gcm-x86_64-linux.S
[245/496] Compiling aesni-gcm-x86_64-apple.S
[246/496] Compiling aes-gcm-avx2-x86_64-linux.S
[247/496] Compiling aes-gcm-avx2-x86_64-apple.S
[248/496] Compiling aes-gcm-avx10-x86_64-linux.S
[249/496] Compiling aes-gcm-avx10-x86_64-apple.S
[251/496] Emitting module SSLService
[252/496] Compiling SSLService SSLService.swift
[252/496] Compiling x_val.cc
[253/496] Compiling x_x509.cc
[254/496] Compiling x_sig.cc
[255/496] Compiling x_req.cc
[256/496] Compiling x_exten.cc
[257/496] Compiling x_x509a.cc
[258/496] Compiling x_spki.cc
[259/496] Compiling x_pubkey.cc
[260/496] Compiling x_name.cc
[261/496] Compiling x_crl.cc
[262/496] Compiling x_attrib.cc
[263/496] Compiling x_algor.cc
[264/496] Compiling x509spki.cc
[265/496] Compiling x509cset.cc
[266/496] Compiling x509rset.cc
[267/496] Compiling x509name.cc
[268/496] Compiling x_all.cc
[269/496] Compiling x509_vpm.cc
[270/496] Compiling x509_v3.cc
[271/496] Compiling x509_vfy.cc
[272/496] Compiling x509_txt.cc
[273/496] Compiling x509_trs.cc
[274/496] Compiling x509_set.cc
[275/496] Compiling x509_obj.cc
[276/496] Compiling x509_def.cc
[277/496] Compiling x509_req.cc
[278/496] Compiling x509_d2.cc
[279/496] Compiling x509_cmp.cc
[280/496] Compiling x509_lu.cc
[281/496] Compiling x509_ext.cc
[282/496] Compiling x509.cc
[283/496] Compiling x509_att.cc
[284/496] Compiling v3_skey.cc
[285/496] Compiling v3_utl.cc
[286/496] Compiling v3_ocsp.cc
[287/496] Compiling v3_prn.cc
[287/496] Compiling v3_pcons.cc
[289/496] Compiling v3_pmaps.cc
[290/496] Compiling v3_purp.cc
[291/496] Compiling v3_ncons.cc
[292/496] Compiling v3_lib.cc
[293/496] Compiling v3_int.cc
[294/496] Compiling v3_info.cc
[295/496] Compiling v3_ia5.cc
[296/496] Compiling v3_extku.cc
[297/496] Compiling v3_genn.cc
[298/496] Compiling v3_crld.cc
[299/496] Compiling v3_cpols.cc
[300/496] Compiling v3_conf.cc
[301/496] Compiling v3_enum.cc
[302/496] Compiling v3_bitst.cc
[303/496] Compiling v3_bcons.cc
[304/496] Compiling v3_alt.cc
[305/496] Compiling v3_akeya.cc
[306/496] Compiling t_x509a.cc
[307/496] Compiling v3_akey.cc
[308/496] Compiling t_x509.cc
[309/496] Compiling t_crl.cc
[310/496] Compiling t_req.cc
[311/496] Compiling rsa_pss.cc
[312/496] Compiling i2d_pr.cc
[313/496] Compiling name_print.cc
[314/496] Compiling policy.cc
[315/496] Compiling by_file.cc
[316/496] Compiling by_dir.cc
[317/496] Compiling a_sign.cc
[318/496] Compiling algorithm.cc
[319/496] Compiling a_verify.cc
[320/496] Compiling asn1_gen.cc
[321/496] Compiling a_digest.cc
[322/496] Compiling voprf.cc
[323/496] Compiling thread_win.cc
[324/496] Compiling trust_token.cc
[325/496] Compiling thread_pthread.cc
[326/496] Compiling thread.cc
[327/496] Compiling pmbtoken.cc
[328/496] Compiling thread_none.cc
[329/496] Compiling stack.cc
[330/496] Compiling slhdsa.cc
[331/496] Compiling spake2plus.cc
[332/496] Compiling siphash.cc
[333/496] Compiling sha512.cc
[334/496] Compiling sha256.cc
[335/496] Compiling sha1.cc
[336/496] Compiling rsa_print.cc
[337/496] Compiling rsa_extra.cc
[338/496] Compiling rsa_crypt.cc
[339/496] Compiling refcount.cc
[340/496] Compiling rc4.cc
[341/496] Compiling rsa_asn1.cc
[342/496] Compiling windows.cc
[343/496] Compiling urandom.cc
[344/496] Compiling trusty.cc
[345/496] Compiling rand.cc
[346/496] Compiling passive.cc
[347/496] Compiling ios.cc
[348/496] Compiling poly1305_arm_asm.S
[349/496] Compiling getentropy.cc
[350/496] Compiling forkunsafe.cc
[351/496] Compiling deterministic.cc
[352/496] Compiling fork_detect.cc
[353/496] Compiling poly1305_vec.cc
[354/496] Compiling poly1305_arm.cc
[355/496] Compiling pool.cc
[356/496] Compiling poly1305.cc
[357/496] Compiling pkcs8_x509.cc
[358/496] Compiling pkcs8.cc
[359/496] Compiling pkcs7.cc
[360/496] Compiling p5_pbev2.cc
[361/496] Compiling pkcs7_x509.cc
[362/496] Compiling pem_xaux.cc
[363/496] Compiling pem_x509.cc
[364/496] Compiling pem_oth.cc
[365/496] Compiling pem_pkey.cc
[366/496] Compiling pem_pk8.cc
[367/496] Compiling mlkem.cc
[368/496] Compiling obj_xref.cc
[369/496] Compiling mldsa.cc
[370/496] Compiling pem_info.cc
[371/496] Compiling pem_lib.cc
[372/496] Compiling pem_all.cc
[373/496] Compiling poly_rq_mul.S
[374/496] Compiling obj.cc
[375/496] Compiling fips_shared_support.cc
[376/496] Compiling md5.cc
[377/496] Compiling mem.cc
[378/496] Compiling md4.cc
[379/496] Compiling lhash.cc
[380/496] Compiling kyber.cc
[381/496] Compiling ex_data.cc
[382/496] Compiling sign.cc
[383/496] Compiling pbkdf.cc
[384/496] Compiling scrypt.cc
[385/496] Compiling print.cc
[386/496] Compiling hpke.cc
[387/496] Compiling hrss.cc
[388/496] Compiling p_x25519_asn1.cc
[389/496] Compiling p_x25519.cc
[390/496] Compiling p_ed25519.cc
[391/496] Compiling p_rsa_asn1.cc
[392/496] Compiling p_rsa.cc
[393/496] Compiling p_hkdf.cc
[394/496] Compiling p_ec.cc
[395/496] Compiling p_ed25519_asn1.cc
[396/496] Compiling p_ec_asn1.cc
[397/496] Compiling p_dh_asn1.cc
[398/496] Compiling p_dh.cc
[399/496] Compiling p_dsa_asn1.cc
[400/496] Compiling evp_ctx.cc
[401/496] Compiling engine.cc
[402/496] Compiling evp.cc
[403/496] Compiling err.cc
[404/496] Compiling evp_asn1.cc
[405/496] Compiling ecdsa_asn1.cc
[406/496] Compiling ecdh.cc
[407/496] Compiling ec_derive.cc
[408/496] Compiling hash_to_curve.cc
[409/496] Compiling dsa.cc
[410/496] Compiling bcm.cc
[411/496] Compiling dsa_asn1.cc
[412/496] Compiling ec_asn1.cc
[413/496] Compiling params.cc
[414/496] Compiling x25519-asm-arm.S
[415/496] Compiling digest_extra.cc
[416/496] Compiling des.cc
[417/496] Compiling curve25519_64_adx.cc
[418/496] Compiling dh_asn1.cc
[419/496] Compiling spake25519.cc
[420/496] Compiling cpu_intel.cc
[421/496] Compiling crypto.cc
[422/496] Compiling cpu_arm_freebsd.cc
[423/496] Compiling cpu_arm_linux.cc
[424/496] Compiling cpu_aarch64_win.cc
[425/496] Compiling curve25519.cc
[426/496] Compiling cpu_aarch64_sysreg.cc
[427/496] Compiling cpu_aarch64_openbsd.cc
[428/496] Compiling cpu_aarch64_linux.cc
[429/496] Compiling cpu_aarch64_fuchsia.cc
[430/496] Compiling cpu_aarch64_apple.cc
[431/496] Compiling conf.cc
[432/496] Compiling get_cipher.cc
[433/496] Compiling tls_cbc.cc
[434/496] Compiling e_rc4.cc
[435/496] Compiling e_tls.cc
[436/496] Compiling e_rc2.cc
[437/496] Compiling e_null.cc
[438/496] Compiling e_des.cc
[439/496] Compiling e_chacha20poly1305.cc
[440/496] Compiling e_aesgcmsiv.cc
[441/496] Compiling e_aesctrhmac.cc
[442/496] Compiling chacha.cc
[443/496] Compiling derive_key.cc
[444/496] Compiling unicode.cc
[445/496] Compiling cbs.cc
[446/496] Compiling cbb.cc
[447/496] Compiling asn1_compat.cc
[448/496] Compiling ber.cc
[449/496] Compiling buf.cc
[450/496] Compiling blake2.cc
[451/496] Compiling socket_helper.cc
[452/496] Compiling bn_asn1.cc
[453/496] Compiling socket.cc
[454/496] Compiling convert.cc
[455/496] Compiling printf.cc
[456/496] Compiling hexdump.cc
[457/496] Compiling pair.cc
[458/496] Compiling file.cc
[459/496] Compiling fd.cc
[460/496] Compiling errno.cc
[461/496] Compiling connect.cc
[462/496] Compiling bio_mem.cc
[463/496] Compiling base64.cc
[464/496] Compiling bio.cc
[465/496] Compiling tasn_typ.cc
[466/496] Compiling tasn_fre.cc
[467/496] Compiling tasn_utl.cc
[468/496] Compiling tasn_enc.cc
[469/496] Compiling tasn_new.cc
[470/496] Compiling posix_time.cc
[471/496] Compiling f_string.cc
[472/496] Compiling f_int.cc
[473/496] Compiling tasn_dec.cc
[474/496] Compiling asn_pack.cc
[475/496] Compiling asn1_par.cc
[476/496] Compiling asn1_lib.cc
[477/496] Compiling a_utctm.cc
[478/496] Compiling a_type.cc
[479/496] Compiling a_octet.cc
[480/496] Compiling a_time.cc
[481/496] Compiling a_strnid.cc
[482/496] Compiling a_strex.cc
[483/496] Compiling a_object.cc
[484/496] Compiling a_mbstr.cc
[485/496] Compiling a_int.cc
[485/496] Write sources
[487/496] Compiling CLinuxHelpers ProcessorAffinity.c
[488/496] Compiling a_i2d_fp.cc
[489/496] Compiling a_dup.cc
[490/496] Compiling a_d2i_fp.cc
[491/496] Compiling a_gentm.cc
[492/496] Compiling a_bitstr.cc
[493/515] Compiling a_bool.cc
[495/515] Compiling Atomics AtomicStorage.swift
[496/515] Compiling Atomics AtomicValue.swift
[497/517] Compiling Atomics ManagedAtomic.swift
[498/517] Compiling Atomics ManagedAtomicLazyReference.swift
[499/517] Compiling Atomics UnsafeAtomic.swift
[500/517] Compiling Atomics UnsafeAtomicLazyReference.swift
[501/517] Compiling Atomics IntegerOperations.swift
[502/517] Compiling Atomics Unmanaged extensions.swift
[503/517] Compiling Atomics OptionalRawRepresentable.swift
[504/517] Compiling Atomics RawRepresentable.swift
[505/517] Compiling Atomics AtomicMemoryOrderings.swift
[506/517] Compiling Atomics DoubleWord.swift
[507/517] Compiling Atomics AtomicBool.swift
[508/517] Compiling Atomics IntegerConformances.swift
[509/517] Compiling Atomics Primitives.shims.swift
[510/517] Compiling Atomics AtomicInteger.swift
[511/517] Compiling Atomics PointerConformances.swift
[512/517] Compiling Atomics Primitives.native.swift
[513/517] Compiling Atomics AtomicOptionalWrappable.swift
[514/517] Compiling Atomics AtomicReference.swift
[514/517] Compiling c-nioatomics.c
[516/517] Emitting module Atomics
[516/517] Compiling c-atomics.c
[518/523] Compiling NIOConcurrencyHelpers lock.swift
[519/523] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[520/523] Compiling NIOConcurrencyHelpers atomics.swift
[521/523] Compiling NIOConcurrencyHelpers NIOLock.swift
[522/523] Emitting module NIOConcurrencyHelpers
[523/523] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[524/584] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[525/584] Compiling NIOCore EventLoopFuture+Deprecated.swift
[526/584] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[527/584] Compiling NIOCore EventLoopFuture.swift
[528/584] Compiling NIOCore FileDescriptor.swift
[529/584] Compiling NIOCore FileHandle.swift
[530/584] Compiling NIOCore FileRegion.swift
[531/590] Compiling NIOCore Interfaces.swift
[532/590] Compiling NIOCore Linux.swift
[533/590] Compiling NIOCore MarkedCircularBuffer.swift
[534/590] Compiling NIOCore MulticastChannel.swift
[535/590] Compiling NIOCore NIOAny.swift
[536/590] Compiling NIOCore NIOCloseOnErrorHandler.swift
[537/590] Compiling NIOCore AddressedEnvelope.swift
[538/590] Compiling NIOCore AsyncAwaitSupport.swift
[539/590] Compiling NIOCore AsyncChannel.swift
[540/590] Compiling NIOCore AsyncChannelHandler.swift
[541/590] Compiling NIOCore AsyncChannelInboundStream.swift
[542/590] Compiling NIOCore AsyncChannelOutboundWriter.swift
[543/590] Compiling NIOCore NIOAsyncSequenceProducer.swift
[544/590] Compiling NIOCore SocketOptionProvider.swift
[545/590] Compiling NIOCore SystemCallHelpers.swift
[546/590] Compiling NIOCore TimeAmount+Duration.swift
[547/590] Compiling NIOCore TypeAssistedChannelHandler.swift
[548/590] Compiling NIOCore UniversalBootstrapSupport.swift
[549/590] Compiling NIOCore Utilities.swift
[550/590] Compiling NIOCore Channel.swift
[551/590] Compiling NIOCore ChannelHandler.swift
[552/590] Compiling NIOCore ChannelHandlers.swift
[553/590] Compiling NIOCore ChannelInvoker.swift
[554/590] Compiling NIOCore ChannelOption.swift
[555/590] Compiling NIOCore ChannelPipeline.swift
[556/590] Compiling NIOCore CircularBuffer.swift
[557/590] Compiling NIOCore Codec.swift
[558/590] Compiling NIOCore ConvenienceOptionSupport.swift
[559/590] Compiling NIOCore DeadChannel.swift
[560/590] Compiling NIOCore DispatchQueue+WithFuture.swift
[561/590] Compiling NIOCore EventLoop+Deprecated.swift
[562/590] Compiling NIOCore EventLoop+SerialExecutor.swift
[563/590] Compiling NIOCore EventLoop.swift
[564/590] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[565/590] Compiling NIOCore NIOAsyncWriter.swift
[566/590] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[567/590] Compiling NIOCore BSDSocketAPI.swift
[568/590] Compiling NIOCore ByteBuffer-aux.swift
[569/590] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[570/590] Compiling NIOCore ByteBuffer-conversions.swift
[571/590] Compiling NIOCore GlobalSingletons.swift
[572/590] Compiling NIOCore IO.swift
[573/590] Compiling NIOCore IOData.swift
[574/590] Compiling NIOCore IPProtocol.swift
[575/590] Compiling NIOCore IntegerBitPacking.swift
[576/590] Compiling NIOCore IntegerTypes.swift
[577/590] Compiling NIOCore ByteBuffer-core.swift
[578/590] Compiling NIOCore ByteBuffer-hex.swift
[579/590] Compiling NIOCore ByteBuffer-int.swift
[580/590] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[581/590] Compiling NIOCore ByteBuffer-multi-int.swift
[582/590] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[583/590] Compiling NIOCore ByteBuffer-views.swift
[584/590] Compiling NIOCore NIOLoopBound.swift
[585/590] Compiling NIOCore NIOScheduledCallback.swift
[586/590] Compiling NIOCore NIOSendable.swift
[587/590] Compiling NIOCore RecvByteBufferAllocator.swift
[588/590] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[589/590] Compiling NIOCore SocketAddresses.swift
[590/590] Emitting module NIOCore
[591/643] Compiling NIOEmbedded AsyncTestingChannel.swift
[592/643] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[593/643] Compiling NIOEmbedded Embedded.swift
[594/643] Emitting module NIOEmbedded
[595/643] Compiling NIOPosix GetaddrinfoResolver.swift
[596/643] Compiling NIOPosix HappyEyeballs.swift
[597/643] Compiling NIOPosix IO.swift
[598/643] Compiling NIOPosix IntegerBitPacking.swift
[599/643] Compiling NIOPosix IntegerTypes.swift
[600/643] Compiling NIOPosix Linux.swift
[601/648] Compiling NIOPosix SocketProtocols.swift
[602/648] Compiling NIOPosix System.swift
[603/648] Compiling NIOPosix Thread.swift
[604/648] Compiling NIOPosix ThreadPosix.swift
[605/648] Compiling NIOPosix ThreadWindows.swift
[606/648] Compiling NIOPosix Selectable.swift
[607/648] Compiling NIOPosix SelectableChannel.swift
[608/648] Compiling NIOPosix SelectableEventLoop.swift
[609/648] Compiling NIOPosix SelectorEpoll.swift
[610/648] Compiling NIOPosix SelectorGeneric.swift
[611/648] Emitting module NIOPosix
[612/648] Compiling NIOPosix BSDSocketAPICommon.swift
[613/648] Compiling NIOPosix BSDSocketAPIPosix.swift
[614/648] Compiling NIOPosix BSDSocketAPIWindows.swift
[615/648] Compiling NIOPosix BaseSocket.swift
[616/648] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[617/648] Compiling NIOPosix BaseSocketChannel.swift
[618/648] Compiling NIOPosix SelectorKqueue.swift
[619/648] Compiling NIOPosix SelectorUring.swift
[620/648] Compiling NIOPosix ServerSocket.swift
[621/648] Compiling NIOPosix Socket.swift
[622/648] Compiling NIOPosix SocketChannel.swift
[623/648] Compiling NIOPosix LinuxCPUSet.swift
[624/648] Compiling NIOPosix LinuxUring.swift
[625/648] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[626/648] Compiling NIOPosix NIOThreadPool.swift
[627/648] Compiling NIOPosix NonBlockingFileIO.swift
[628/648] Compiling NIOPosix UnsafeTransfer.swift
[629/648] Compiling NIOPosix Utilities.swift
[630/648] Compiling NIOPosix VsockAddress.swift
[631/648] Compiling NIOPosix VsockChannelEvents.swift
[632/648] Compiling NIOPosix resource_bundle_accessor.swift
[633/648] Compiling NIOPosix PendingDatagramWritesManager.swift
[634/648] Compiling NIOPosix PendingWritesManager.swift
[635/648] Compiling NIOPosix PipeChannel.swift
[636/648] Compiling NIOPosix PipePair.swift
[637/648] Compiling NIOPosix Pool.swift
[638/648] Compiling NIOPosix PooledRecvBufferAllocator.swift
[639/648] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[640/648] Compiling NIOPosix PosixSingletons.swift
[641/648] Compiling NIOPosix RawSocketBootstrap.swift
[642/648] Compiling NIOPosix Resolver.swift
[643/648] Compiling NIOPosix BaseStreamSocketChannel.swift
[644/648] Compiling NIOPosix Bootstrap.swift
[645/648] Compiling NIOPosix ControlMessage.swift
[646/648] Compiling NIOPosix DatagramVectorReadManager.swift
[647/648] Compiling NIOPosix Errors+Any.swift
[648/648] Compiling NIOPosix FileDescriptor.swift
[649/650] Emitting module NIO
[650/650] Compiling NIO Exports.swift
[651/678] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[652/678] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[653/678] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[654/678] Compiling NIOTLS NIOTypedApplicationProtocolNegotiationHandler.swift
[655/678] Compiling NIOTLS TLSEvents.swift
[656/678] Compiling NIOTLS ProtocolNegotiationHandlerStateMachine.swift
[657/678] Compiling NIOTLS SNIHandler.swift
[658/678] Emitting module NIOTLS
[659/678] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
[660/678] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[661/679] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[662/679] Emitting module NIOFoundationCompat
[663/679] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[664/679] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[665/679] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[666/679] Compiling NIOHTTP1 HTTPEncoder.swift
[667/679] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[668/679] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[669/679] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[670/709] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[671/709] Emitting module NIOHTTP1
[672/709] Compiling NIOSSL AndroidCABundle.swift
[673/709] Compiling NIOSSL ByteBufferBIO.swift
[674/709] Compiling NIOSSL NIOSSLHandler+Configuration.swift
[675/709] Compiling NIOSSL NIOSSLHandler.swift
[676/709] Compiling NIOSSL NIOSSLServerHandler.swift
[677/709] Compiling NIOSSL ObjectIdentifier.swift
[678/709] Compiling NIOSSL PosixPort.swift
[679/709] Compiling NIOSSL SSLPublicKey.swift
[680/738] Compiling NIOWebSocket WebSocketOpcode.swift
[681/739] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[682/739] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[683/739] Compiling NIOExtras NIOExtrasError.swift
[684/739] Compiling NIOExtras NIOLengthFieldBitLength.swift
[685/739] Compiling NIOExtras LineBasedFrameDecoder.swift
[686/739] Compiling NIOExtras MarkedCircularBuffer+PopFirstCheckMarked.swift
[687/740] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
[688/740] Compiling NIOExtras RequestResponseWithIDHandler.swift
[689/740] Compiling NIOExtras UnsafeTransfer.swift
[690/740] Compiling NIOExtras NIORequestIdentifiable.swift
[691/740] Compiling NIOExtras PCAPRingBuffer.swift
[692/740] Compiling NIOExtras QuiescingHelper.swift
[693/740] Compiling NIOExtras RequestResponseHandler.swift
[694/740] Emitting module NIOSSL
[695/743] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[696/743] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[697/743] Compiling NIOWebSocket WebSocketErrorCodes.swift
[698/743] Compiling NIOWebSocket WebSocketFrame.swift
[699/743] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[700/743] Compiling NIOWebSocket SHA1.swift
[701/743] Emitting module NIOWebSocket
[702/743] Compiling NIOExtras JSONRPCFraming+ContentLengthHeader.swift
[703/743] Compiling NIOExtras JSONRPCFraming.swift
[704/743] Compiling NIOExtras DebugInboundEventsHandler.swift
[705/743] Compiling NIOExtras DebugOutboundEventsHandler.swift
[706/743] Compiling NIOExtras LengthFieldBasedFrameDecoder.swift
[707/743] Compiling NIOExtras LengthFieldPrepender.swift
[708/743] Compiling NIOExtras FixedLengthFrameDecoder.swift
[709/743] Compiling NIOExtras HTTP1ProxyConnectHandler.swift
[710/743] Emitting module NIOExtras
[714/743] Compiling NIOSSL UniversalBootstrapSupport.swift
[715/743] Compiling NIOSSL UnsafeKeyAndChainTarget.swift
[716/743] Compiling NIOSSL resource_bundle_accessor.swift
[717/743] Compiling NIOSSL SSLCallbacks.swift
[718/743] Compiling NIOSSL SSLCertificate.swift
[719/743] Compiling NIOSSL SSLCertificateExtensions.swift
[731/743] Compiling NIOSSL SSLInit.swift
[732/743] Compiling NIOSSL SSLPKCS12Bundle.swift
[733/743] Compiling NIOSSL SSLPrivateKey.swift
[734/743] Compiling NIOSSL SubjectAlternativeName.swift
[735/743] Compiling NIOSSL NIOSSLSecureBytes.swift
[736/743] Compiling NIOSSL RNG.swift
[737/743] Compiling NIOExtras WritePCAPHandler.swift
[742/743] Compiling NIOSSL SSLContext.swift
[743/743] Compiling NIOSSL SSLErrors.swift
[744/769] Compiling KituraNet SPIUtils.swift
[745/769] Compiling KituraNet Server.swift
[746/769] Compiling KituraNet ServerDelegate.swift
[747/771] Compiling KituraNet SSLConfiguration.swift
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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'
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultRequestSizeResponseGenerator' part of global actor 'MainActor'
| `- 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'
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultConnectionResponseGenerator' part of global actor 'MainActor'
| `- 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, "")
[748/771] Compiling KituraNet ServerOptions.swift
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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'
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultRequestSizeResponseGenerator' part of global actor 'MainActor'
| `- 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'
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultConnectionResponseGenerator' part of global actor 'MainActor'
| `- 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, "")
[749/771] Compiling KituraNet ListenerGroup.swift
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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'
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultRequestSizeResponseGenerator' part of global actor 'MainActor'
| `- 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'
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultConnectionResponseGenerator' part of global actor 'MainActor'
| `- 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, "")
[750/771] Compiling KituraNet ConnectionUpgrader.swift
/Users/admin/builder/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: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// Determine if any upgraders have been registered
[751/771] Compiling KituraNet FastCGI.swift
/Users/admin/builder/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: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// Determine if any upgraders have been registered
[752/771] Compiling KituraNet FastCGIServer.swift
/Users/admin/builder/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: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// Determine if any upgraders have been registered
[753/771] Emitting module KituraNet
/Users/admin/builder/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 | }
/Users/admin/builder/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: add '@MainActor' to make static property 'instance' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// Determine if any upgraders have been registered
/Users/admin/builder/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 | /**
/Users/admin/builder/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: add '@MainActor' to make static property 'eventLoopGroupAlreadyInitialized' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
728 | }
729 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultRequestSizeResponseGenerator' part of global actor 'MainActor'
| `- 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'
/Users/admin/builder/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: add '@MainActor' to make static property 'defaultConnectionResponseGenerator' part of global actor 'MainActor'
| `- 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, "")
/Users/admin/builder/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: add '@MainActor' to make static property 'delegate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[754/771] Compiling KituraNet HTTPServerResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:248:17: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
246 | private func sendResponse(channel: Channel, handler: HTTPRequestHandler, status: HTTPResponseStatus, withBody: Bool = true, promise: EventLoopPromise<Void>? = nil) throws {
247 | let response = HTTPResponseHead(version: httpVersion, status: status, headers: headers.nioHeaders)
248 | channel.write(handler.wrapOutboundOut(.head(response)), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
249 | if withBody && buffer.readableBytes > 0 {
250 | channel.write(handler.wrapOutboundOut(.body(.byteBuffer(buffer))), promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:250:21: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
248 | channel.write(handler.wrapOutboundOut(.head(response)), promise: nil)
249 | if withBody && buffer.readableBytes > 0 {
250 | channel.write(handler.wrapOutboundOut(.body(.byteBuffer(buffer))), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
251 | }
252 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:253:17: warning: 'writeAndFlush(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
251 | }
252 |
253 | channel.writeAndFlush(handler.wrapOutboundOut(.end(nil)), promise: promise)
| `- warning: 'writeAndFlush(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
254 | handler.updateKeepAliveState()
255 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:293:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
291 | } else {
292 | return self.submit {
293 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
294 | }
295 | }
[755/771] Compiling KituraNet HeadersContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:248:17: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
246 | private func sendResponse(channel: Channel, handler: HTTPRequestHandler, status: HTTPResponseStatus, withBody: Bool = true, promise: EventLoopPromise<Void>? = nil) throws {
247 | let response = HTTPResponseHead(version: httpVersion, status: status, headers: headers.nioHeaders)
248 | channel.write(handler.wrapOutboundOut(.head(response)), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
249 | if withBody && buffer.readableBytes > 0 {
250 | channel.write(handler.wrapOutboundOut(.body(.byteBuffer(buffer))), promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:250:21: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
248 | channel.write(handler.wrapOutboundOut(.head(response)), promise: nil)
249 | if withBody && buffer.readableBytes > 0 {
250 | channel.write(handler.wrapOutboundOut(.body(.byteBuffer(buffer))), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
251 | }
252 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:253:17: warning: 'writeAndFlush(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
251 | }
252 |
253 | channel.writeAndFlush(handler.wrapOutboundOut(.end(nil)), promise: promise)
| `- warning: 'writeAndFlush(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
254 | handler.updateKeepAliveState()
255 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:293:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
291 | } else {
292 | return self.submit {
293 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
294 | }
295 | }
[756/771] Compiling KituraNet KeepAliveState.swift
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:248:17: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
246 | private func sendResponse(channel: Channel, handler: HTTPRequestHandler, status: HTTPResponseStatus, withBody: Bool = true, promise: EventLoopPromise<Void>? = nil) throws {
247 | let response = HTTPResponseHead(version: httpVersion, status: status, headers: headers.nioHeaders)
248 | channel.write(handler.wrapOutboundOut(.head(response)), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
249 | if withBody && buffer.readableBytes > 0 {
250 | channel.write(handler.wrapOutboundOut(.body(.byteBuffer(buffer))), promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:250:21: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
248 | channel.write(handler.wrapOutboundOut(.head(response)), promise: nil)
249 | if withBody && buffer.readableBytes > 0 {
250 | channel.write(handler.wrapOutboundOut(.body(.byteBuffer(buffer))), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
251 | }
252 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:253:17: warning: 'writeAndFlush(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
251 | }
252 |
253 | channel.writeAndFlush(handler.wrapOutboundOut(.end(nil)), promise: promise)
| `- warning: 'writeAndFlush(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
254 | handler.updateKeepAliveState()
255 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServerResponse.swift:293:17: warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
291 | } else {
292 | return self.submit {
293 | task()
| |- warning: capture of 'task' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
294 | }
295 | }
[757/771] Compiling KituraNet ServerResponse.swift
[758/771] Compiling KituraNet URLParser.swift
[759/771] Compiling KituraNet BufferList.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:634:17: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
632 |
633 | private func sendRequest(request: HTTPRequestHead, on channel: Channel) {
634 | channel.write(NIOAny(HTTPClientRequestPart.head(request)), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
635 | if let bodyData = bodyData {
636 | let buffer = BufferList()
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:638:21: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
636 | let buffer = BufferList()
637 | buffer.append(data: bodyData)
638 | channel.write(NIOAny(HTTPClientRequestPart.body(.byteBuffer(buffer.byteBuffer))), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
639 | }
640 | _ = channel.writeAndFlush(NIOAny(HTTPClientRequestPart.end(nil)))
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:640:21: warning: 'writeAndFlush(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
638 | channel.write(NIOAny(HTTPClientRequestPart.body(.byteBuffer(buffer.byteBuffer))), promise: nil)
639 | }
640 | _ = channel.writeAndFlush(NIOAny(HTTPClientRequestPart.end(nil)))
| `- warning: 'writeAndFlush(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
641 | }
642 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:50: warning: type 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
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: type 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
656 | channel.pipeline.addHTTPClientHandlers().flatMap {
657 | channel.pipeline.addHandler(HTTPClientHandler(request: self))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:59:20: note: class 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
57 | /// This handler can be used in channels that are acting as the client
58 | /// in the TLS dialog. For server connections, use the ``NIOSSLServerHandler``.
59 | public final class NIOSSLClientHandler: NIOSSLHandler {
| `- note: class 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
60 | /// Construct a new ``NIOSSLClientHandler`` with the given `context` and a specific `serverHostname`.
61 | ///
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
18 | import NIOHTTP1
19 | import Foundation
20 | import NIOSSL
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
21 | import LoggerAPI
22 | import Dispatch
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:53: warning: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
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: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
658 | }
659 | }
:
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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:79: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
656 | channel.pipeline.addHTTPClientHandlers().flatMap {
657 | channel.pipeline.addHandler(HTTPClientHandler(request: self))
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
658 | }
659 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
658 | }
659 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:49: warning: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
666 | .channelInitializer { channel in
667 | channel.pipeline.addHTTPClientHandlers().flatMap {
668 | channel.pipeline.addHandler(HTTPClientHandler(request: self))
| `- warning: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
669 | }
670 | }
:
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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
669 | }
670 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
669 | }
670 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:747:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
748 | self.clientRequest.waitSemaphore.signal()
749 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:748:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
749 | }
750 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:754:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
755 | self.clientRequest.waitSemaphore.signal()
756 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:755:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
756 | }
757 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:761:25: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
762 | self.clientRequest.waitSemaphore.signal()
763 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:767:21: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
768 | self.clientRequest.waitSemaphore.signal()
769 | }
[760/771] Compiling KituraNet ClientRequest.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:634:17: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
632 |
633 | private func sendRequest(request: HTTPRequestHead, on channel: Channel) {
634 | channel.write(NIOAny(HTTPClientRequestPart.head(request)), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
635 | if let bodyData = bodyData {
636 | let buffer = BufferList()
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:638:21: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
636 | let buffer = BufferList()
637 | buffer.append(data: bodyData)
638 | channel.write(NIOAny(HTTPClientRequestPart.body(.byteBuffer(buffer.byteBuffer))), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
639 | }
640 | _ = channel.writeAndFlush(NIOAny(HTTPClientRequestPart.end(nil)))
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:640:21: warning: 'writeAndFlush(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
638 | channel.write(NIOAny(HTTPClientRequestPart.body(.byteBuffer(buffer.byteBuffer))), promise: nil)
639 | }
640 | _ = channel.writeAndFlush(NIOAny(HTTPClientRequestPart.end(nil)))
| `- warning: 'writeAndFlush(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
641 | }
642 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:50: warning: type 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
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: type 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
656 | channel.pipeline.addHTTPClientHandlers().flatMap {
657 | channel.pipeline.addHandler(HTTPClientHandler(request: self))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:59:20: note: class 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
57 | /// This handler can be used in channels that are acting as the client
58 | /// in the TLS dialog. For server connections, use the ``NIOSSLServerHandler``.
59 | public final class NIOSSLClientHandler: NIOSSLHandler {
| `- note: class 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
60 | /// Construct a new ``NIOSSLClientHandler`` with the given `context` and a specific `serverHostname`.
61 | ///
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
18 | import NIOHTTP1
19 | import Foundation
20 | import NIOSSL
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
21 | import LoggerAPI
22 | import Dispatch
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:53: warning: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
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: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
658 | }
659 | }
:
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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:79: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
656 | channel.pipeline.addHTTPClientHandlers().flatMap {
657 | channel.pipeline.addHandler(HTTPClientHandler(request: self))
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
658 | }
659 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
658 | }
659 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:49: warning: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
666 | .channelInitializer { channel in
667 | channel.pipeline.addHTTPClientHandlers().flatMap {
668 | channel.pipeline.addHandler(HTTPClientHandler(request: self))
| `- warning: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
669 | }
670 | }
:
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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
669 | }
670 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
669 | }
670 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:747:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
748 | self.clientRequest.waitSemaphore.signal()
749 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:748:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
749 | }
750 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:754:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
755 | self.clientRequest.waitSemaphore.signal()
756 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:755:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
756 | }
757 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:761:25: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
762 | self.clientRequest.waitSemaphore.signal()
763 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:767:21: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
768 | self.clientRequest.waitSemaphore.signal()
769 | }
[761/771] Compiling KituraNet ClientResponse.swift
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:634:17: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
632 |
633 | private func sendRequest(request: HTTPRequestHead, on channel: Channel) {
634 | channel.write(NIOAny(HTTPClientRequestPart.head(request)), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
635 | if let bodyData = bodyData {
636 | let buffer = BufferList()
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:638:21: warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
636 | let buffer = BufferList()
637 | buffer.append(data: bodyData)
638 | channel.write(NIOAny(HTTPClientRequestPart.body(.byteBuffer(buffer.byteBuffer))), promise: nil)
| `- warning: 'write(_:promise:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
639 | }
640 | _ = channel.writeAndFlush(NIOAny(HTTPClientRequestPart.end(nil)))
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:640:21: warning: 'writeAndFlush(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
638 | channel.write(NIOAny(HTTPClientRequestPart.body(.byteBuffer(buffer.byteBuffer))), promise: nil)
639 | }
640 | _ = channel.writeAndFlush(NIOAny(HTTPClientRequestPart.end(nil)))
| `- warning: 'writeAndFlush(_:file:line:)' is deprecated: NIOAny is not Sendable. Avoid wrapping the value in NIOAny to silence this warning.
641 | }
642 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:50: warning: type 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
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: type 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
656 | channel.pipeline.addHTTPClientHandlers().flatMap {
657 | channel.pipeline.addHandler(HTTPClientHandler(request: self))
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLClientHandler.swift:59:20: note: class 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
57 | /// This handler can be used in channels that are acting as the client
58 | /// in the TLS dialog. For server connections, use the ``NIOSSLServerHandler``.
59 | public final class NIOSSLClientHandler: NIOSSLHandler {
| `- note: class 'NIOSSLClientHandler' does not conform to the 'Sendable' protocol
60 | /// Construct a new ``NIOSSLClientHandler`` with the given `context` and a specific `serverHostname`.
61 | ///
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
18 | import NIOHTTP1
19 | import Foundation
20 | import NIOSSL
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
21 | import LoggerAPI
22 | import Dispatch
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:53: warning: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
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: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
658 | }
659 | }
:
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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:655:79: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
656 | channel.pipeline.addHTTPClientHandlers().flatMap {
657 | channel.pipeline.addHandler(HTTPClientHandler(request: self))
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
658 | }
659 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:657:80: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
658 | }
659 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:49: warning: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
666 | .channelInitializer { channel in
667 | channel.pipeline.addHTTPClientHandlers().flatMap {
668 | channel.pipeline.addHandler(HTTPClientHandler(request: self))
| `- warning: type 'HTTPClientHandler' does not conform to the 'Sendable' protocol
669 | }
670 | }
:
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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
669 | }
670 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:668:76: warning: capture of 'self' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
669 | }
670 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:747:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
748 | self.clientRequest.waitSemaphore.signal()
749 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:748:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
749 | }
750 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:754:29: warning: capture of 'request' with non-sendable type 'ClientRequest' in a '@Sendable' closure
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
755 | self.clientRequest.waitSemaphore.signal()
756 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:755:29: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
756 | }
757 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:761:25: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
762 | self.clientRequest.waitSemaphore.signal()
763 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/ClientRequest.swift:767:21: warning: capture of 'self' with non-sendable type 'HTTPClientHandler' in a '@Sendable' closure
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
768 | self.clientRequest.waitSemaphore.signal()
769 | }
[762/771] Compiling KituraNet FastCGIServerRequest.swift
/Users/admin/builder/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 | /**
[763/771] Compiling KituraNet FastCGIServerResponse.swift
/Users/admin/builder/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 | /**
[764/771] Compiling KituraNet HTTP.swift
/Users/admin/builder/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 | /**
[765/771] Compiling KituraNet ServerState.swift
[766/771] Compiling KituraNet ServerRequest.swift
[767/771] Compiling KituraNet HTTPRequestHandler.swift
/Users/admin/builder/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 | /**
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:145:43: warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a '@Sendable' closure
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
146 | let delegate = self.server.delegate ?? HTTPDummyServerDelegate()
147 | Monitor.delegate?.started(request: serverRequest, response: serverResponse)
/Users/admin/builder/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: add '@MainActor' to make static property 'eventLoopGroupAlreadyInitialized' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
728 | }
729 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:233:52: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
231 | return webSocketHandlerFactory.handler(for: request)
232 | }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 | return channel.pipeline.addHandler(handler).flatMap {
| `- warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
234 | if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 | let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:61: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
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: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
237 | } else {
238 | // No extensions. We must return success.
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol; 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: type 'any ChannelHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
237 | } else {
238 | // No extensions. We must return success.
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:231:20: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a '@Sendable' closure
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
232 | }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 | return channel.pipeline.addHandler(handler).flatMap {
/Users/admin/builder/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 }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a '@Sendable' closure
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
236 | return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a '@Sendable' closure
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
236 | return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a '@Sendable' closure
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
237 | } else {
238 | // No extensions. We must return success.
/Users/admin/builder/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 | ///
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:352:52: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
350 | // Adding the quiescing helper will help us do a graceful stop()
351 | self.quiescingHelper = ServerQuiescingHelper(group: self.eventLoopGroup)
352 | return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
| `- warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
353 | }
354 | .childChannelInitializer { channel in
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:357:56: warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
355 | let httpHandler = HTTPRequestHandler(for: self)
356 | let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 | _ = channel.pipeline.removeHandler(httpHandler)
| `- warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
358 | })
359 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:359:88: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
357 | _ = channel.pipeline.removeHandler(httpHandler)
358 | })
359 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
| `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
360 | if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:361:57: warning: type 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
359 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
360 | if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
| `- warning: type 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
362 | }
363 | return channel.pipeline.addHandler(httpHandler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLServerHandler.swift:20:20: note: class 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
18 | /// handler can be used in channels that are acting as the server in
19 | /// the TLS dialog. For client connections, use the ``NIOSSLClientHandler``.
20 | public final class NIOSSLServerHandler: NIOSSLHandler {
| `- note: class 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
21 | /// Construct a new ``NIOSSLServerHandler`` with the given `context`.
22 | ///
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
18 | import NIOHTTP1
19 | import Dispatch
20 | import NIOSSL
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
21 | import SSLService
22 | import LoggerAPI
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 | }
363 | return channel.pipeline.addHandler(httpHandler)
| `- warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
364 | }
365 | }
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:351:17: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
352 | return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
353 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:355:59: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
356 | let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 | _ = channel.pipeline.removeHandler(httpHandler)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a '@Sendable' closure
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
357 | _ = channel.pipeline.removeHandler(httpHandler)
358 | })
/Users/admin/builder/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 }
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: reference to captured var 'upgraders' in concurrently-executing code
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
357 | _ = channel.pipeline.removeHandler(httpHandler)
358 | })
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:360:50: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a '@Sendable' closure
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
364 | }
365 | }
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:523:13: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
524 | }
525 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
[768/771] Compiling KituraNet HTTPServer.swift
/Users/admin/builder/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 | /**
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:145:43: warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a '@Sendable' closure
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
146 | let delegate = self.server.delegate ?? HTTPDummyServerDelegate()
147 | Monitor.delegate?.started(request: serverRequest, response: serverResponse)
/Users/admin/builder/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: add '@MainActor' to make static property 'eventLoopGroupAlreadyInitialized' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
728 | }
729 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:233:52: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
231 | return webSocketHandlerFactory.handler(for: request)
232 | }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 | return channel.pipeline.addHandler(handler).flatMap {
| `- warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
234 | if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 | let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:61: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
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: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
237 | } else {
238 | // No extensions. We must return success.
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol; 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: type 'any ChannelHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
237 | } else {
238 | // No extensions. We must return success.
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:231:20: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a '@Sendable' closure
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
232 | }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 | return channel.pipeline.addHandler(handler).flatMap {
/Users/admin/builder/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 }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a '@Sendable' closure
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
236 | return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a '@Sendable' closure
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
236 | return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a '@Sendable' closure
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
237 | } else {
238 | // No extensions. We must return success.
/Users/admin/builder/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 | ///
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:352:52: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
350 | // Adding the quiescing helper will help us do a graceful stop()
351 | self.quiescingHelper = ServerQuiescingHelper(group: self.eventLoopGroup)
352 | return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
| `- warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
353 | }
354 | .childChannelInitializer { channel in
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:357:56: warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
355 | let httpHandler = HTTPRequestHandler(for: self)
356 | let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 | _ = channel.pipeline.removeHandler(httpHandler)
| `- warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
358 | })
359 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:359:88: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
357 | _ = channel.pipeline.removeHandler(httpHandler)
358 | })
359 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
| `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
360 | if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:361:57: warning: type 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
359 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
360 | if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
| `- warning: type 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
362 | }
363 | return channel.pipeline.addHandler(httpHandler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLServerHandler.swift:20:20: note: class 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
18 | /// handler can be used in channels that are acting as the server in
19 | /// the TLS dialog. For client connections, use the ``NIOSSLClientHandler``.
20 | public final class NIOSSLServerHandler: NIOSSLHandler {
| `- note: class 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
21 | /// Construct a new ``NIOSSLServerHandler`` with the given `context`.
22 | ///
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
18 | import NIOHTTP1
19 | import Dispatch
20 | import NIOSSL
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
21 | import SSLService
22 | import LoggerAPI
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 | }
363 | return channel.pipeline.addHandler(httpHandler)
| `- warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
364 | }
365 | }
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:351:17: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
352 | return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
353 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:355:59: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
356 | let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 | _ = channel.pipeline.removeHandler(httpHandler)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a '@Sendable' closure
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
357 | _ = channel.pipeline.removeHandler(httpHandler)
358 | })
/Users/admin/builder/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 }
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: reference to captured var 'upgraders' in concurrently-executing code
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
357 | _ = channel.pipeline.removeHandler(httpHandler)
358 | })
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:360:50: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a '@Sendable' closure
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
364 | }
365 | }
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:523:13: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
524 | }
525 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
[769/771] Compiling KituraNet HTTPServerRequest.swift
/Users/admin/builder/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 | /**
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPRequestHandler.swift:145:43: warning: capture of 'self' with non-sendable type 'HTTPRequestHandler' in a '@Sendable' closure
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
146 | let delegate = self.server.delegate ?? HTTPDummyServerDelegate()
147 | Monitor.delegate?.started(request: serverRequest, response: serverResponse)
/Users/admin/builder/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: add '@MainActor' to make static property 'eventLoopGroupAlreadyInitialized' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
728 | }
729 |
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:233:52: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
231 | return webSocketHandlerFactory.handler(for: request)
232 | }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 | return channel.pipeline.addHandler(handler).flatMap {
| `- warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
234 | if let _extensions = request.headers["Sec-WebSocket-Extensions"].first {
235 | let handlers = webSocketHandlerFactory.extensionHandlers(header: _extensions)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:61: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
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: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
237 | } else {
238 | // No extensions. We must return success.
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol; 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: type 'any ChannelHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
237 | } else {
238 | // No extensions. We must return success.
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:231:20: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a '@Sendable' closure
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
232 | }.flatMap { (handler: ChannelHandler) -> EventLoopFuture<Void> in
233 | return channel.pipeline.addHandler(handler).flatMap {
/Users/admin/builder/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 }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a '@Sendable' closure
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
236 | return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:235:40: warning: capture of 'webSocketHandlerFactory' with non-sendable type 'any ProtocolHandlerFactory' in a '@Sendable' closure
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
236 | return channel.pipeline.addHandlers(handlers, position: .before(handler))
237 | } else {
/Users/admin/builder/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 }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:236:89: warning: capture of 'handler' with non-sendable type 'any ChannelHandler' in a '@Sendable' closure
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
237 | } else {
238 | // No extensions. We must return success.
/Users/admin/builder/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 | ///
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:352:52: warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
350 | // Adding the quiescing helper will help us do a graceful stop()
351 | self.quiescingHelper = ServerQuiescingHelper(group: self.eventLoopGroup)
352 | return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
| `- warning: type 'any ChannelHandler' does not conform to the 'Sendable' protocol
353 | }
354 | .childChannelInitializer { channel in
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:357:56: warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
355 | let httpHandler = HTTPRequestHandler(for: self)
356 | let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 | _ = channel.pipeline.removeHandler(httpHandler)
| `- warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
358 | })
359 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:359:88: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
357 | _ = channel.pipeline.removeHandler(httpHandler)
358 | })
359 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
| `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
360 | if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:361:57: warning: type 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
359 | return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config, withErrorHandling: true).flatMap {
360 | if let nioSSLServerHandler = self.createNIOSSLServerHandler() {
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
| `- warning: type 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
362 | }
363 | return channel.pipeline.addHandler(httpHandler)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/NIOSSL/NIOSSLServerHandler.swift:20:20: note: class 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
18 | /// handler can be used in channels that are acting as the server in
19 | /// the TLS dialog. For client connections, use the ``NIOSSLClientHandler``.
20 | public final class NIOSSLServerHandler: NIOSSLHandler {
| `- note: class 'NIOSSLServerHandler' does not conform to the 'Sendable' protocol
21 | /// Construct a new ``NIOSSLServerHandler`` with the given `context`.
22 | ///
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
18 | import NIOHTTP1
19 | import Dispatch
20 | import NIOSSL
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOSSL'
21 | import SSLService
22 | import LoggerAPI
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 | }
363 | return channel.pipeline.addHandler(httpHandler)
| `- warning: type 'HTTPRequestHandler' does not conform to the 'Sendable' protocol
364 | }
365 | }
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:351:17: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
352 | return channel.pipeline.addHandler(self.quiescingHelper!.makeServerChannelHandler(channel: channel))
353 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:355:59: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
356 | let config: NIOHTTPServerUpgradeConfiguration = (upgraders: upgraders, completionHandler: {_ in
357 | _ = channel.pipeline.removeHandler(httpHandler)
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: capture of 'upgraders' with non-sendable type '[any HTTPServerProtocolUpgrader]' in a '@Sendable' closure
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
357 | _ = channel.pipeline.removeHandler(httpHandler)
358 | })
/Users/admin/builder/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 }
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:356:77: warning: reference to captured var 'upgraders' in concurrently-executing code
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
357 | _ = channel.pipeline.removeHandler(httpHandler)
358 | })
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:360:50: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
361 | _ = channel.pipeline.addHandler(nioSSLServerHandler, position: .first)
362 | }
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:363:56: warning: capture of 'httpHandler' with non-sendable type 'HTTPRequestHandler' in a '@Sendable' closure
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
364 | }
365 | }
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/KituraNet/HTTP/HTTPServer.swift:523:13: warning: capture of 'self' with non-sendable type 'HTTPServer' in a '@Sendable' closure
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
524 | }
525 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 |
[770/771] Compiling KituraNet ServerLifecycleListener.swift
/Users/admin/builder/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: add '@MainActor' to make static property 'delegate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
[771/771] Compiling KituraNet ServerMonitor.swift
/Users/admin/builder/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: add '@MainActor' to make static property 'delegate' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | }
38 |
Build complete! (33.83s)
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" : "/Users/admin/builder/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"
}
Done.