mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Motivation: Reduce system calls on Linux required for configuring sockets as nonblocking. Modifications: - expose accept4 as CNIOLinux_accept4 - add Linux internal enum for exposing Linux specific API - wrap CNIOLinux_accept4 with Linux.accept4 - expose SOCK_NONBLOCK and SOCK_CLOEXEC on Linux - add setNonBlocking parameter to BaseSocket.newSocket - add setNonBlocking parameter to ServerSocket.accept Result: Servers and clients on Linux will use fewer system calls creating new sockets.