gitextract_lx9o5bau/ ├── .editorconfig ├── .git-blame-ignore-revs ├── .gitattributes ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ └── bug-report.md │ ├── PULL_REQUEST_TEMPLATE.md │ ├── actions/ │ │ └── pull_request_semver_label_checker/ │ │ └── action.yml │ ├── dependabot.yml │ ├── release.yml │ └── workflows/ │ ├── android_swift_sdk.yml │ ├── benchmarks.yml │ ├── cmake_tests.yml │ ├── cxx_interop.yml │ ├── macos_benchmarks.yml │ ├── macos_tests.yml │ ├── main.yml │ ├── pull_request.yml │ ├── pull_request_label.yml │ ├── release_builds.yml │ ├── static_sdk.yml │ ├── swift_6_language_mode.yml │ ├── swift_load_test_matrix.yml │ ├── swift_matrix.yml │ ├── swift_test_matrix.yml │ ├── unit_tests.yml │ └── wasm_swift_sdk.yml ├── .gitignore ├── .licenseignore ├── .mailfilter ├── .mailmap ├── .spi.yml ├── .swift-format ├── Benchmarks/ │ ├── .gitignore │ ├── Benchmarks/ │ │ ├── NIOCoreBenchmarks/ │ │ │ └── Benchmarks.swift │ │ └── NIOPosixBenchmarks/ │ │ ├── Benchmarks.swift │ │ ├── NIOThreadPoolBenchmark.swift │ │ ├── TCPEcho.swift │ │ ├── TCPEchoAsyncChannel.swift │ │ ├── UDPEcho.swift │ │ └── Util/ │ │ └── GlobalExecutor.swift │ ├── Package.swift │ └── Thresholds/ │ ├── 5.10/ │ │ ├── NIOCoreBenchmarks.NIOAsyncChannel.init.p90.json │ │ ├── NIOCoreBenchmarks.WaitOnPromise.p90.json │ │ ├── NIOPosixBenchmarks.TCPEcho.p90.json │ │ └── NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json │ ├── 6.0/ │ │ ├── NIOCoreBenchmarks.NIOAsyncChannel.init.p90.json │ │ ├── NIOPosixBenchmarks.TCPEcho.p90.json │ │ └── NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json │ ├── 6.1/ │ │ ├── NIOCoreBenchmarks.NIOAsyncChannel.init.p90.json │ │ ├── NIOPosixBenchmarks.TCPEcho.p90.json │ │ └── NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json │ ├── 6.2/ │ │ ├── NIOCoreBenchmarks.NIOAsyncChannel.init.p90.json │ │ ├── NIOPosixBenchmarks.TCPEcho.p90.json │ │ └── NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json │ ├── nightly-main/ │ │ ├── NIOCoreBenchmarks.NIOAsyncChannel.init.p90.json │ │ ├── NIOPosixBenchmarks.TCPEcho.p90.json │ │ └── NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json │ └── nightly-next/ │ ├── NIOCoreBenchmarks.NIOAsyncChannel.init.p90.json │ ├── NIOPosixBenchmarks.TCPEcho.p90.json │ └── NIOPosixBenchmarks.TCPEchoAsyncChannel.p90.json ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── CONTRIBUTORS.txt ├── IntegrationTests/ │ ├── allocation-counter-tests-framework/ │ │ ├── run-allocation-counter.sh │ │ └── template/ │ │ ├── AtomicCounter/ │ │ │ ├── Package.swift │ │ │ └── Sources/ │ │ │ └── AtomicCounter/ │ │ │ ├── include/ │ │ │ │ └── atomic-counter.h │ │ │ └── src/ │ │ │ └── atomic-counter.c │ │ ├── HookedFunctionsDoHook/ │ │ │ ├── Package.swift │ │ │ └── Sources/ │ │ │ └── HookedFunctions/ │ │ │ ├── include/ │ │ │ │ └── hooked-functions.h │ │ │ └── src/ │ │ │ ├── hooked-functions-darwin.c │ │ │ └── hooked-functions-unix.c │ │ ├── HookedFunctionsDoNotHook/ │ │ │ ├── Package.swift │ │ │ └── Sources/ │ │ │ └── HookedFunctions/ │ │ │ ├── include/ │ │ │ │ └── hooked-functions.h │ │ │ └── src/ │ │ │ └── hooked-functions.c │ │ ├── Sources/ │ │ │ ├── bootstrapDoHook/ │ │ │ │ └── main.c │ │ │ └── bootstrapDoNotHook/ │ │ │ └── main.c │ │ └── scaffolding.swift │ ├── plugin_echo.sh │ ├── plugin_junit_xml.sh │ ├── run-single-test.sh │ ├── run-tests.sh │ ├── test_functions.sh │ ├── tests_01_http/ │ │ ├── defines.sh │ │ ├── test_01_get_file.sh │ │ ├── test_02_get_random_bytes.sh │ │ ├── test_03_post_random_bytes.sh │ │ ├── test_04_keep_alive_works.sh │ │ ├── test_05_repeated_reqs_work.sh │ │ ├── test_06_http_1.0.sh │ │ ├── test_07_headers_work.sh │ │ ├── test_08_survive_signals.sh │ │ ├── test_09_curl_happy_with_trailers.sh │ │ ├── test_10_connection_drop_in_body_ok.sh │ │ ├── test_11_res_body_streaming.sh │ │ ├── test_12_headers_too_large.sh │ │ ├── test_13_http_pipelining.sh │ │ ├── test_14_strict_mode_assertion.sh │ │ ├── test_15_post_in_chunked_encoding.sh │ │ ├── test_16_tcp_client_ip.sh │ │ ├── test_17_serve_massive_sparse_file.sh │ │ ├── test_18_close_with_no_keepalive.sh │ │ ├── test_19_connection_drop_while_waiting_for_response_uds.sh │ │ ├── test_20_connection_drop_while_waiting_for_response_tcp.sh │ │ ├── test_21_connection_reset_tcp.sh │ │ ├── test_22_http_1.0_keep_alive.sh │ │ ├── test_23_repeated_reqs_with_half_closure.sh │ │ └── test_24_http_over_stdio.sh │ ├── tests_02_syscall_wrappers/ │ │ ├── defines.sh │ │ ├── test_01_syscall_wrapper_fast.sh │ │ ├── test_02_unacceptable_errnos.sh │ │ └── test_03_unacceptable_read_errnos.sh │ ├── tests_03_debug_binary_checks/ │ │ ├── defines.sh │ │ ├── test_01_check_we_do_not_link_Foundation.sh │ │ └── test_02_expected_crashes_work.sh │ ├── tests_04_performance/ │ │ ├── Thresholds/ │ │ │ ├── 5.10.json │ │ │ ├── 5.8.json │ │ │ ├── 6.0.json │ │ │ ├── 6.1.json │ │ │ ├── 6.2.json │ │ │ ├── nightly-main.json │ │ │ └── nightly-next.json │ │ ├── defines.sh │ │ ├── test_01_allocation_counts.sh │ │ └── test_01_resources/ │ │ ├── README.md │ │ ├── run-nio-alloc-counter-tests.sh │ │ ├── shared.swift │ │ ├── test_10000000_asyncsequenceproducer.swift │ │ ├── test_1000000_asyncwriter.swift │ │ ├── test_1000_addHandlers.swift │ │ ├── test_1000_addHandlers_sync.swift │ │ ├── test_1000_addRemoveHandlers.swift │ │ ├── test_1000_autoReadGetAndSet.swift │ │ ├── test_1000_autoReadGetAndSet_sync.swift │ │ ├── test_1000_copying_bytebufferview_to_array.swift │ │ ├── test_1000_copying_circularbuffer_to_array.swift │ │ ├── test_1000_getHandlers.swift │ │ ├── test_1000_getHandlers_sync.swift │ │ ├── test_1000_reqs_1_conn.swift │ │ ├── test_1000_rst_connections.swift │ │ ├── test_1000_tcpbootstraps.swift │ │ ├── test_1000_tcpconnections.swift │ │ ├── test_1000_udp_reqs.swift │ │ ├── test_1000_udpbootstraps.swift │ │ ├── test_1000_udpconnections.swift │ │ ├── test_1_reqs_1000_conn.swift │ │ ├── test_assume_isolated_scheduling_10000_executions.swift │ │ ├── test_bytebuffer_lots_of_rw.swift │ │ ├── test_creating_10000_headers.swift │ │ ├── test_decode_1000_ws_frames.swift │ │ ├── test_encode_1000_ws_frames.swift │ │ ├── test_execute_hop_10000_tasks.swift │ │ ├── test_flat_schedule_10000_tasks.swift │ │ ├── test_flat_schedule_assume_isolated_10000_tasks.swift │ │ ├── test_future_assume_isolated_lots_of_callbacks.swift │ │ ├── test_future_erase_result.swift │ │ ├── test_future_lots_of_callbacks.swift │ │ ├── test_get_100000_headers_canonical_form.swift │ │ ├── test_modifying_1000_circular_buffer_elements.swift │ │ ├── test_modifying_byte_buffer_view.swift │ │ ├── test_ping_pong_1000_reqs_1_conn.swift │ │ ├── test_read_10000_chunks_from_file.swift │ │ ├── test_schedule_10000_tasks.swift │ │ ├── test_schedule_and_run_10000_tasks.swift │ │ ├── test_schedule_assume_isolated_10000_tasks.swift │ │ ├── test_schedule_with_deadline_10000_tasks.swift │ │ ├── test_schedule_with_deadline_assume_isolated_10000_tasks.swift │ │ ├── test_scheduling_10000_executions.swift │ │ ├── test_submit_10000_tasks.swift │ │ ├── test_submit_assume_isolated_10000_tasks.swift │ │ ├── test_udp_1000_reqs_1_conn.swift │ │ └── test_udp_1_reqs_1000_conn.swift │ └── tests_05_assertions/ │ ├── defines.sh │ └── test_01_syscall_wrapper_fast.sh ├── LICENSE.txt ├── NOTICE.txt ├── Package.swift ├── README.md ├── SECURITY.md ├── Snippets/ │ └── NIOFileSystemTour.swift ├── Sources/ │ ├── CNIOAtomics/ │ │ ├── include/ │ │ │ └── CNIOAtomics.h │ │ └── src/ │ │ ├── c-atomics.c │ │ ├── c-nioatomics.c │ │ └── cpp_magic.h │ ├── CNIODarwin/ │ │ ├── include/ │ │ │ └── CNIODarwin.h │ │ └── shim.c │ ├── CNIOLLHTTP/ │ │ ├── LICENSE │ │ ├── c_nio_api.c │ │ ├── c_nio_http.c │ │ ├── c_nio_llhttp.c │ │ ├── include/ │ │ │ ├── CNIOLLHTTP.h │ │ │ └── c_nio_llhttp.h │ │ └── update_and_patch_llhttp.sh │ ├── CNIOLinux/ │ │ ├── include/ │ │ │ ├── CNIOLinux.h │ │ │ └── liburing_nio.h │ │ ├── liburing_shims.c │ │ └── shim.c │ ├── CNIOOpenBSD/ │ │ ├── include/ │ │ │ └── CNIOOpenBSD.h │ │ └── shim.c │ ├── CNIOPosix/ │ │ ├── event_loop_id.c │ │ └── include/ │ │ └── CNIOPosix.h │ ├── CNIOSHA1/ │ │ ├── c_nio_sha1.c │ │ ├── include/ │ │ │ └── CNIOSHA1.h │ │ └── update_and_patch_sha1.sh │ ├── CNIOWASI/ │ │ ├── CNIOWASI.c │ │ └── include/ │ │ └── CNIOWASI.h │ ├── CNIOWindows/ │ │ ├── WSAStartup.c │ │ ├── include/ │ │ │ ├── CNIOWindows.h │ │ │ └── module.modulemap │ │ └── shim.c │ ├── NIO/ │ │ ├── Docs.docc/ │ │ │ ├── Articles/ │ │ │ │ ├── Debugging Allocation Regressions.md │ │ │ │ └── Running Alloction Counting Tests.md │ │ │ └── index.md │ │ └── Exports.swift │ ├── NIOAsyncAwaitDemo/ │ │ ├── AsyncChannelIO.swift │ │ ├── FullRequestResponse.swift │ │ └── main.swift │ ├── NIOChatClient/ │ │ ├── README.md │ │ └── main.swift │ ├── NIOChatServer/ │ │ ├── README.md │ │ └── main.swift │ ├── NIOConcurrencyHelpers/ │ │ ├── NIOAtomic.swift │ │ ├── NIOLock.swift │ │ ├── NIOLockedValueBox.swift │ │ ├── NIOThreadPoolWorkAvailable.swift │ │ ├── atomics.swift │ │ └── lock.swift │ ├── NIOCore/ │ │ ├── AddressedEnvelope.swift │ │ ├── AsyncAwaitSupport.swift │ │ ├── AsyncChannel/ │ │ │ ├── AsyncChannel.swift │ │ │ ├── AsyncChannelHandler.swift │ │ │ ├── AsyncChannelInboundStream.swift │ │ │ └── AsyncChannelOutboundWriter.swift │ │ ├── AsyncSequences/ │ │ │ ├── NIOAsyncSequenceProducer.swift │ │ │ ├── NIOAsyncSequenceProducerStrategies.swift │ │ │ ├── NIOAsyncWriter.swift │ │ │ └── NIOThrowingAsyncSequenceProducer.swift │ │ ├── BSDSocketAPI.swift │ │ ├── ByteBuffer-aux.swift │ │ ├── ByteBuffer-binaryEncodedLengthPrefix.swift │ │ ├── ByteBuffer-conversions.swift │ │ ├── ByteBuffer-core.swift │ │ ├── ByteBuffer-hex.swift │ │ ├── ByteBuffer-int.swift │ │ ├── ByteBuffer-lengthPrefix.swift │ │ ├── ByteBuffer-multi-int.swift │ │ ├── ByteBuffer-quicBinaryEncodingStrategy.swift │ │ ├── ByteBuffer-views.swift │ │ ├── Channel.swift │ │ ├── ChannelHandler.swift │ │ ├── ChannelHandlers.swift │ │ ├── ChannelInvoker.swift │ │ ├── ChannelOption.swift │ │ ├── ChannelPipeline.swift │ │ ├── CircularBuffer.swift │ │ ├── Codec.swift │ │ ├── ConvenienceOptionSupport.swift │ │ ├── DeadChannel.swift │ │ ├── DispatchQueue+WithFuture.swift │ │ ├── Docs.docc/ │ │ │ ├── ByteBuffer-lengthPrefix.md │ │ │ ├── index.md │ │ │ ├── loops-futures-concurrency.md │ │ │ └── swift-concurrency.md │ │ ├── EventLoop+Deprecated.swift │ │ ├── EventLoop+SerialExecutor.swift │ │ ├── EventLoop.swift │ │ ├── EventLoopFuture+AssumeIsolated.swift │ │ ├── EventLoopFuture+Deprecated.swift │ │ ├── EventLoopFuture+WithEventLoop.swift │ │ ├── EventLoopFuture.swift │ │ ├── FileDescriptor.swift │ │ ├── FileHandle.swift │ │ ├── FileRegion.swift │ │ ├── GlobalSingletons.swift │ │ ├── IO.swift │ │ ├── IOData.swift │ │ ├── IPProtocol.swift │ │ ├── IntegerBitPacking.swift │ │ ├── IntegerTypes.swift │ │ ├── Interfaces.swift │ │ ├── Linux.swift │ │ ├── MarkedCircularBuffer.swift │ │ ├── MulticastChannel.swift │ │ ├── NIOAny.swift │ │ ├── NIOCloseOnErrorHandler.swift │ │ ├── NIOCoreSendableMetatype.swift │ │ ├── NIODecodedAsyncSequence.swift │ │ ├── NIOLoopBound.swift │ │ ├── NIOPooledRecvBufferAllocator.swift │ │ ├── NIOScheduledCallback.swift │ │ ├── NIOSendable.swift │ │ ├── NIOSplitLinesMessageDecoder.swift │ │ ├── NIOTransportAccessibleChannelCore.swift │ │ ├── RecvByteBufferAllocator.swift │ │ ├── SingleStepByteToMessageDecoder.swift │ │ ├── SocketAddresses.swift │ │ ├── SocketOptionProvider.swift │ │ ├── SystemCallHelpers.swift │ │ ├── TimeAmount+Duration.swift │ │ ├── TypeAssistedChannelHandler.swift │ │ ├── UniversalBootstrapSupport.swift │ │ └── Utilities.swift │ ├── NIOCrashTester/ │ │ ├── CrashTestSuites.swift │ │ ├── CrashTests+ByteBuffer.swift │ │ ├── CrashTests+EventLoop.swift │ │ ├── CrashTests+HTTP.swift │ │ ├── CrashTests+LoopBound.swift │ │ ├── CrashTests+Strict.swift │ │ ├── CrashTests+System.swift │ │ ├── OutputGrepper.swift │ │ └── main.swift │ ├── NIOEchoClient/ │ │ ├── README.md │ │ └── main.swift │ ├── NIOEchoServer/ │ │ ├── README.md │ │ └── main.swift │ ├── NIOEmbedded/ │ │ ├── AsyncTestingChannel.swift │ │ ├── AsyncTestingEventLoop.swift │ │ └── Embedded.swift │ ├── NIOFS/ │ │ ├── Array+FileSystem.swift │ │ ├── ArraySlice+FileSystem.swift │ │ ├── BufferedReader.swift │ │ ├── BufferedWriter.swift │ │ ├── ByteBuffer+FileSystem.swift │ │ ├── ByteCount.swift │ │ ├── Convenience.swift │ │ ├── DirectoryEntries.swift │ │ ├── DirectoryEntry.swift │ │ ├── Exports.swift │ │ ├── FileChunks.swift │ │ ├── FileHandle.swift │ │ ├── FileHandleProtocol.swift │ │ ├── FileInfo.swift │ │ ├── FileSystem.swift │ │ ├── FileSystemError+Syscall.swift │ │ ├── FileSystemError.swift │ │ ├── FileSystemProtocol.swift │ │ ├── FileType.swift │ │ ├── IOStrategy.swift │ │ ├── Internal/ │ │ │ ├── BufferedOrAnyStream.swift │ │ │ ├── BufferedStream.swift │ │ │ ├── Cancellation.swift │ │ │ ├── Concurrency Primitives/ │ │ │ │ └── TokenBucket.swift │ │ │ ├── ParallelDirCopy.swift │ │ │ ├── ParallelRemoval.swift │ │ │ ├── String+UnsafeUnititializedCapacity.swift │ │ │ ├── System Calls/ │ │ │ │ ├── CInterop.swift │ │ │ │ ├── Errno.swift │ │ │ │ ├── FileDescriptor+Syscalls.swift │ │ │ │ ├── Mocking.swift │ │ │ │ ├── Syscall.swift │ │ │ │ └── Syscalls.swift │ │ │ ├── SystemFileHandle.swift │ │ │ └── Utilities.swift │ │ ├── NIOFilePath.swift │ │ ├── NIOFileSystemSendableMetatype.swift │ │ ├── OpenOptions.swift │ │ ├── PrivacyInfo.xcprivacy │ │ └── String+FileSystem.swift │ ├── NIOFSFoundationCompat/ │ │ ├── Data+FileSystem.swift │ │ └── Date+FileInfo.swift │ ├── NIOFileSystem/ │ │ ├── Docs.docc/ │ │ │ └── index.md │ │ └── Exports.swift │ ├── NIOFoundationCompat/ │ │ ├── ByteBuffer-foundation.swift │ │ ├── Codable+ByteBuffer.swift │ │ ├── JSONSerialization+ByteBuffer.swift │ │ └── WaitSpinningRunLoop.swift │ ├── NIOHTTP1/ │ │ ├── ByteCollectionUtils.swift │ │ ├── HTTPDecoder.swift │ │ ├── HTTPEncoder.swift │ │ ├── HTTPHeaderValidator.swift │ │ ├── HTTPHeaders+Validation.swift │ │ ├── HTTPPipelineSetup.swift │ │ ├── HTTPServerPipelineHandler.swift │ │ ├── HTTPServerProtocolErrorHandler.swift │ │ ├── HTTPServerUpgradeHandler.swift │ │ ├── HTTPTypedPipelineSetup.swift │ │ ├── HTTPTypes.swift │ │ ├── NIOHTTPClientUpgradeHandler.swift │ │ ├── NIOHTTPObjectAggregator.swift │ │ ├── NIOTypedHTTPClientUpgradeHandler.swift │ │ ├── NIOTypedHTTPClientUpgraderStateMachine.swift │ │ ├── NIOTypedHTTPServerUpgradeHandler.swift │ │ └── NIOTypedHTTPServerUpgraderStateMachine.swift │ ├── NIOHTTP1Client/ │ │ ├── README.md │ │ └── main.swift │ ├── NIOHTTP1Server/ │ │ ├── README.md │ │ └── main.swift │ ├── NIOMulticastChat/ │ │ └── main.swift │ ├── NIOPerformanceTester/ │ │ ├── Benchmark.swift │ │ ├── ByteBufferViewContainsBenchmark.swift │ │ ├── ByteBufferViewCopyToArrayBenchmark.swift │ │ ├── ByteBufferViewIteratorBenchmark.swift │ │ ├── ByteBufferWriteMultipleBenchmarks.swift │ │ ├── ByteToMessageDecoderDecodeManySmallsBenchmark.swift │ │ ├── ChannelPipelineBenchmark.swift │ │ ├── ChannelPipelineInstantiationBenchmark.swift │ │ ├── CircularBufferCopyToArrayBenchmark.swift │ │ ├── CircularBufferIntoByteBufferBenchmark.swift │ │ ├── DeadlineNowBenchmark.swift │ │ ├── ExecuteBenchmark.swift │ │ ├── LockBenchmark.swift │ │ ├── NIOAsyncSequenceProducerBenchmark.swift │ │ ├── NIOAsyncWriterSingleWritesBenchmark.swift │ │ ├── NIOThreadPoolSubmitBenchmark.swift │ │ ├── RunIfActiveBenchmark.swift │ │ ├── SchedulingAndRunningBenchmark.swift │ │ ├── TCPThroughputBenchmark.swift │ │ ├── UDPBenchmark.swift │ │ ├── WebSocketFrameDecoderBenchmark.swift │ │ ├── WebSocketFrameEncoderBenchmark.swift │ │ ├── main.swift │ │ └── resources.swift │ ├── NIOPosix/ │ │ ├── BSDSocketAPICommon.swift │ │ ├── BSDSocketAPIPosix.swift │ │ ├── BSDSocketAPIWindows.swift │ │ ├── BaseSocket.swift │ │ ├── BaseSocketChannel+AccessibleTransport.swift │ │ ├── BaseSocketChannel+SocketOptionProvider.swift │ │ ├── BaseSocketChannel.swift │ │ ├── BaseStreamSocketChannel.swift │ │ ├── Bootstrap.swift │ │ ├── ControlMessage.swift │ │ ├── DatagramVectorReadManager.swift │ │ ├── Docs.docc/ │ │ │ ├── GSO-GRO-Linux.md │ │ │ └── index.md │ │ ├── Errors+Any.swift │ │ ├── FileDescriptor.swift │ │ ├── GetaddrinfoResolver.swift │ │ ├── HappyEyeballs.swift │ │ ├── IO.swift │ │ ├── IntegerBitPacking.swift │ │ ├── IntegerTypes.swift │ │ ├── Linux.swift │ │ ├── LinuxCPUSet.swift │ │ ├── LinuxUring.swift │ │ ├── MultiThreadedEventLoopGroup.swift │ │ ├── NIOPosixSendableMetatype.swift │ │ ├── NIOThreadPool.swift │ │ ├── NonBlockingFileIO.swift │ │ ├── PendingDatagramWritesManager.swift │ │ ├── PendingWritesManager.swift │ │ ├── PipeChannel.swift │ │ ├── PipePair.swift │ │ ├── Pool.swift │ │ ├── PosixSingletons+ConcurrencyTakeOver.swift │ │ ├── PosixSingletons.swift │ │ ├── PrivacyInfo.xcprivacy │ │ ├── RawSocketBootstrap.swift │ │ ├── Resolver.swift │ │ ├── Selectable.swift │ │ ├── SelectableChannel.swift │ │ ├── SelectableEventLoop.swift │ │ ├── SelectorEpoll.swift │ │ ├── SelectorGeneric.swift │ │ ├── SelectorKqueue.swift │ │ ├── SelectorUring.swift │ │ ├── SelectorWSAPoll.swift │ │ ├── ServerSocket.swift │ │ ├── Socket.swift │ │ ├── SocketChannel.swift │ │ ├── SocketProtocols.swift │ │ ├── StructuredConcurrencyHelpers.swift │ │ ├── System.swift │ │ ├── Thread.swift │ │ ├── ThreadPosix.swift │ │ ├── ThreadWindows.swift │ │ ├── Utilities.swift │ │ ├── VsockAddress.swift │ │ ├── VsockChannelEvents.swift │ │ └── Windows.swift │ ├── NIOTCPEchoClient/ │ │ ├── Client.swift │ │ └── README.md │ ├── NIOTCPEchoServer/ │ │ ├── README.md │ │ └── Server.swift │ ├── NIOTLS/ │ │ ├── ApplicationProtocolNegotiationHandler.swift │ │ ├── NIOTypedApplicationProtocolNegotiationHandler.swift │ │ ├── ProtocolNegotiationHandlerStateMachine.swift │ │ ├── SNIHandler.swift │ │ └── TLSEvents.swift │ ├── NIOTestUtils/ │ │ ├── ByteToMessageDecoderVerifier.swift │ │ ├── EventCounterHandler.swift │ │ ├── ManualTaskExecutor.swift │ │ └── NIOHTTP1TestServer.swift │ ├── NIOUDPEchoClient/ │ │ ├── README.md │ │ └── main.swift │ ├── NIOUDPEchoServer/ │ │ ├── README.md │ │ └── main.swift │ ├── NIOWebSocket/ │ │ ├── NIOWebSocketClientUpgrader.swift │ │ ├── NIOWebSocketFrameAggregator.swift │ │ ├── NIOWebSocketServerUpgrader.swift │ │ ├── SHA1.swift │ │ ├── WebSocketErrorCodes.swift │ │ ├── WebSocketFrame.swift │ │ ├── WebSocketFrameDecoder.swift │ │ ├── WebSocketFrameEncoder.swift │ │ ├── WebSocketOpcode.swift │ │ └── WebSocketProtocolErrorHandler.swift │ ├── NIOWebSocketClient/ │ │ ├── Client.swift │ │ └── README.md │ ├── NIOWebSocketServer/ │ │ ├── README.md │ │ └── Server.swift │ ├── _NIOBase64/ │ │ └── Base64.swift │ ├── _NIOConcurrency/ │ │ └── Empty.swift │ ├── _NIODataStructures/ │ │ ├── Heap.swift │ │ ├── PriorityQueue.swift │ │ └── _TinyArray.swift │ ├── _NIOFileSystem/ │ │ ├── Array+FileSystem.swift │ │ ├── ArraySlice+FileSystem.swift │ │ ├── BufferedReader.swift │ │ ├── BufferedWriter.swift │ │ ├── ByteBuffer+FileSystem.swift │ │ ├── ByteCount.swift │ │ ├── Convenience.swift │ │ ├── DirectoryEntries.swift │ │ ├── DirectoryEntry.swift │ │ ├── Docs.docc/ │ │ │ ├── Extensions/ │ │ │ │ ├── DirectoryFileHandleProtocol.md │ │ │ │ ├── FileHandleProtocol.md │ │ │ │ ├── FileSystemProtocol.md │ │ │ │ ├── ReadableFileHandleProtocol.md │ │ │ │ └── WritableFileHandleProtocol.md │ │ │ └── index.md │ │ ├── Exports.swift │ │ ├── FileChunks.swift │ │ ├── FileHandle.swift │ │ ├── FileHandleProtocol.swift │ │ ├── FileInfo.swift │ │ ├── FileSystem.swift │ │ ├── FileSystemError+Syscall.swift │ │ ├── FileSystemError.swift │ │ ├── FileSystemProtocol.swift │ │ ├── FileType.swift │ │ ├── IOStrategy.swift │ │ ├── Internal/ │ │ │ ├── BufferedOrAnyStream.swift │ │ │ ├── BufferedStream.swift │ │ │ ├── Cancellation.swift │ │ │ ├── Concurrency Primitives/ │ │ │ │ └── TokenBucket.swift │ │ │ ├── ParallelDirCopy.swift │ │ │ ├── ParallelRemoval.swift │ │ │ ├── String+UnsafeUnititializedCapacity.swift │ │ │ ├── System Calls/ │ │ │ │ ├── CInterop.swift │ │ │ │ ├── Errno.swift │ │ │ │ ├── FileDescriptor+Syscalls.swift │ │ │ │ ├── Mocking.swift │ │ │ │ ├── Syscall.swift │ │ │ │ └── Syscalls.swift │ │ │ ├── SystemFileHandle.swift │ │ │ └── Utilities.swift │ │ ├── NIOFilePath.swift │ │ ├── NIOFileSystemSendableMetatype.swift │ │ ├── OpenOptions.swift │ │ ├── PrivacyInfo.xcprivacy │ │ └── String+FileSystem.swift │ └── _NIOFileSystemFoundationCompat/ │ ├── Data+FileSystem.swift │ └── Date+FileInfo.swift ├── Tests/ │ ├── NIOBase64Tests/ │ │ └── Base64Test.swift │ ├── NIOConcurrencyHelpersTests/ │ │ └── NIOConcurrencyHelpersTests.swift │ ├── NIOCoreTests/ │ │ ├── AddressedEnvelopeTests.swift │ │ ├── AsyncChannel/ │ │ │ ├── AsyncChannelInboundStreamTests.swift │ │ │ ├── AsyncChannelOutboundWriterTests.swift │ │ │ └── AsyncChannelTests.swift │ │ ├── AsyncSequenceTests.swift │ │ ├── AsyncSequences/ │ │ │ ├── NIOAsyncSequenceProducer+HighLowWatermarkBackPressureStrategyTests.swift │ │ │ ├── NIOAsyncSequenceTests.swift │ │ │ ├── NIOAsyncWriterTests.swift │ │ │ └── NIOThrowingAsyncSequenceTests.swift │ │ ├── BaseObjectsTest.swift │ │ ├── ByteBufferBinaryEncodedLengthPrefixTests.swift │ │ ├── ByteBufferCustomAllocatorTest.swift │ │ ├── ByteBufferLengthPrefixTests.swift │ │ ├── ByteBufferQUICBinaryEncodingStrategyTests.swift │ │ ├── ByteBufferSpanTests.swift │ │ ├── ByteBufferTest.swift │ │ ├── ChannelOptionStorageTest.swift │ │ ├── CircularBufferTests.swift │ │ ├── CustomChannelTests.swift │ │ ├── DispatchQueue+WithFutureTest.swift │ │ ├── IOErrorTest.swift │ │ ├── IntegerTypesTest.swift │ │ ├── LinuxTest.swift │ │ ├── MarkedCircularBufferTests.swift │ │ ├── NIOAnyDebugTest.swift │ │ ├── NIOCloseOnErrorHandlerTest.swift │ │ ├── NIODecodedAsyncSequenceTests.swift │ │ ├── NIOIsolatedEventLoopTests.swift │ │ ├── NIOPooledRecvBufferAllocatorTests.swift │ │ ├── NIOSplitLinesMessageDecoderTests.swift │ │ ├── RecvByteBufAllocatorTest.swift │ │ ├── SingleStepByteToMessageDecoderTest.swift │ │ ├── TimeAmount+DurationTests.swift │ │ ├── TimeAmountTests.swift │ │ ├── TypeAssistedChannelHandlerTests.swift │ │ ├── UtilitiesTest.swift │ │ ├── XCTest+AsyncAwait.swift │ │ └── XCTest+Extensions.swift │ ├── NIODataStructuresTests/ │ │ ├── HeapTests.swift │ │ └── PriorityQueueTests.swift │ ├── NIOEmbeddedTests/ │ │ ├── AsyncTestingChannelTests.swift │ │ ├── AsyncTestingEventLoopTests.swift │ │ ├── EmbeddedChannelTest.swift │ │ ├── EmbeddedEventLoopTest.swift │ │ ├── TestUtils.swift │ │ └── XCTest+AsyncAwait.swift │ ├── NIOFSFoundationCompatTests/ │ │ └── FileSystemFoundationCompatTests.swift │ ├── NIOFSIntegrationTests/ │ │ ├── BufferedReaderTests.swift │ │ ├── BufferedWriterTests.swift │ │ ├── ConvenienceTests.swift │ │ ├── FileHandleTests.swift │ │ ├── FileSystemTests+SPI.swift │ │ ├── FileSystemTests.swift │ │ ├── Test Data/ │ │ │ ├── Foo/ │ │ │ │ └── README.txt │ │ │ └── README.md │ │ └── XCTestExtensions.swift │ ├── NIOFSTests/ │ │ ├── ByteCountTests.swift │ │ ├── DirectoryEntriesTests.swift │ │ ├── FileChunksTests.swift │ │ ├── FileHandleTests.swift │ │ ├── FileInfoTests.swift │ │ ├── FileOpenOptionsTests.swift │ │ ├── FilePathTests.swift │ │ ├── FileSystemErrorTests.swift │ │ ├── FileTypeTests.swift │ │ ├── Internal/ │ │ │ ├── CancellationTests.swift │ │ │ ├── Concurrency Primitives/ │ │ │ │ └── BufferedStreamTests.swift │ │ │ ├── MockingInfrastructure.swift │ │ │ └── SyscallTests.swift │ │ └── XCTestExtensions.swift │ ├── NIOFoundationCompatTests/ │ │ ├── ByteBuffer+UUIDTests.swift │ │ ├── ByteBufferDataProtocolTests.swift │ │ ├── ByteBufferView+MutableDataProtocolTest.swift │ │ ├── Codable+ByteBufferTest.swift │ │ ├── JSONSerialization+ByteBufferTest.swift │ │ └── WaitSpinningRunLoopTests.swift │ ├── NIOHTTP1Tests/ │ │ ├── ByteBufferUtilsTest.swift │ │ ├── ContentLengthTests.swift │ │ ├── HTTPClientUpgradeTests.swift │ │ ├── HTTPDecoderLengthTest.swift │ │ ├── HTTPDecoderTest.swift │ │ ├── HTTPHeaderValidationTests.swift │ │ ├── HTTPHeadersTest.swift │ │ ├── HTTPRequestEncoderTest.swift │ │ ├── HTTPResponseEncoderTest.swift │ │ ├── HTTPResponseStatusTests.swift │ │ ├── HTTPServerClientTest.swift │ │ ├── HTTPServerPipelineHandlerTest.swift │ │ ├── HTTPServerProtocolErrorHandlerTest.swift │ │ ├── HTTPServerUpgradeTests.swift │ │ ├── HTTPTest.swift │ │ ├── HTTPTypesTest.swift │ │ ├── NIOHTTPObjectAggregatorTest.swift │ │ └── TestUtils.swift │ ├── NIOPosixTests/ │ │ ├── AcceptBackoffHandlerTest.swift │ │ ├── AsyncChannelBootstrapTests.swift │ │ ├── BlockingIOThreadPoolTest.swift │ │ ├── BootstrapTest.swift │ │ ├── ChannelNotificationTest.swift │ │ ├── ChannelPipelineTest.swift │ │ ├── ChannelTests.swift │ │ ├── CoWValue.swift │ │ ├── CodecTest.swift │ │ ├── ControlMessageTests.swift │ │ ├── DatagramChannelTests.swift │ │ ├── EchoServerClientTest.swift │ │ ├── EventLoopFutureIsolatedTests.swift │ │ ├── EventLoopFutureTest.swift │ │ ├── EventLoopMetricsDelegateTests.swift │ │ ├── EventLoopTest.swift │ │ ├── FileRegionTest.swift │ │ ├── GetAddrInfoResolverTest.swift │ │ ├── HappyEyeballsTest.swift │ │ ├── IPv4Header.swift │ │ ├── IdleStateHandlerTest.swift │ │ ├── IntegerBitPackingTests.swift │ │ ├── MulticastTest.swift │ │ ├── NIOFileHandleTest.swift │ │ ├── NIOLoopBoundTests.swift │ │ ├── NIOScheduledCallbackTests.swift │ │ ├── NIOThreadPoolTest.swift │ │ ├── NIOTransportAccessibleChannelCoreTests.swift │ │ ├── NonBlockingFileIOTest.swift │ │ ├── PendingDatagramWritesManagerTests.swift │ │ ├── PipeChannelTest.swift │ │ ├── RawSocketBootstrapTests.swift │ │ ├── SALChannelTests.swift │ │ ├── SALEventLoopTests.swift │ │ ├── SelectorTest.swift │ │ ├── SerialExecutorTests.swift │ │ ├── SocketAddressTest.swift │ │ ├── SocketChannelTest.swift │ │ ├── SocketOptionProviderTest.swift │ │ ├── StreamChannelsTest.swift │ │ ├── SyscallAbstractionLayer.swift │ │ ├── SyscallAbstractionLayerContext.swift │ │ ├── SystemCallWrapperHelpers.swift │ │ ├── SystemTest.swift │ │ ├── TestUtils.swift │ │ ├── ThreadTest.swift │ │ ├── UniversalBootstrapSupportTest.swift │ │ ├── VsockAddressTest.swift │ │ └── XCTest+AsyncAwait.swift │ ├── NIOSingletonsTests/ │ │ └── GlobalSingletonsTests.swift │ ├── NIOTLSTests/ │ │ ├── ApplicationProtocolNegotiationHandlerTests.swift │ │ ├── NIOTypedApplicationProtocolNegotiationHandlerTests.swift │ │ └── SNIHandlerTests.swift │ ├── NIOTestUtilsTests/ │ │ ├── ByteToMessageDecoderVerifierTest.swift │ │ ├── EventCounterHandlerTest.swift │ │ ├── ManualTaskExecutorTest.swift │ │ └── NIOHTTP1TestServerTest.swift │ ├── NIOTests/ │ │ └── NIOTests.swift │ └── NIOWebSocketTests/ │ ├── ByteBufferWebSocketTests.swift │ ├── NIOWebSocketClientUpgraderTests.swift │ ├── NIOWebSocketFrameAggregatorTests.swift │ ├── WebSocketClientEndToEndTests.swift │ ├── WebSocketFrameDecoderTest.swift │ ├── WebSocketFrameEncoderTest.swift │ ├── WebSocketMaskingKeyTests.swift │ └── WebSocketServerEndToEndTests.swift ├── dev/ │ ├── alloc-limits-from-test-output │ ├── boxed-existentials.d │ ├── generate-bytebuffer-multi-int.sh │ ├── git.commit.template │ ├── lldb-smoker │ ├── make-single-file-spm │ ├── malloc-aggregation.bt │ ├── malloc-aggregation.d │ ├── stackdiff/ │ │ ├── Package.swift │ │ ├── Sources/ │ │ │ ├── Stacks/ │ │ │ │ ├── AggregateStacks.swift │ │ │ │ ├── Parsing/ │ │ │ │ │ ├── BPFTraceParser.swift │ │ │ │ │ ├── DTraceParser.swift │ │ │ │ │ ├── HeaptrackParser.swift │ │ │ │ │ └── StackParser.swift │ │ │ │ └── Similarity.swift │ │ │ └── stackdiff/ │ │ │ ├── StackFormatter.swift │ │ │ ├── Stackdiff+Diff.swift │ │ │ ├── Stackdiff+Dump.swift │ │ │ ├── Stackdiff+Merge.swift │ │ │ └── Stackdiff.swift │ │ └── Tests/ │ │ └── StacksTests/ │ │ ├── AggregateStackTests.swift │ │ ├── DTraceParserTests.swift │ │ ├── HeaptrackParserTests.swift │ │ └── SimilarityTests.swift │ ├── stackdiff-dtrace.py │ ├── thresholds-from-benchmark-output.sh │ └── update-integration-test-thresholds.sh ├── docs/ │ ├── advanced-performance-analysis.md │ ├── debugging-allocations.md │ ├── io_uring.md │ ├── migration-guide-NIO1-to-NIO2.md │ ├── optimization-tips.md │ ├── public-api.md │ ├── public-async-nio-apis.md │ └── workarounds.md └── scripts/ ├── analyze_performance_results.rb ├── bench-alloc-counter.sh ├── check-cxx-interop-compatibility.sh ├── check-matrix-job.ps1 ├── check-matrix-job.sh ├── check_benchmark_thresholds.sh ├── cmake-build.sh ├── compare_perf_of_swift_versions.sh ├── generate_matrix.sh ├── install_android_ndk.sh ├── install_swift_prerequisites.sh ├── install_swift_sdk.sh ├── integration_tests.sh ├── nio-diagnose ├── swift-build-with-android-sdk.sh ├── swift-build-with-wasm-sdk.sh └── update-cmake-lists.sh