NIOFailedToSetSocketNonBlockingError

NIOFailedToSetSocketNonBlockingError indicates that NIO was unable to set a socket to non-blocking mode, either when connecting a socket as a client or when accepting a socket as a server.

System.swift:1042

This declaration has been renamed to NIOFcntlFailedError.

This declaration is deprecated.

struct NIOFailedToSetSocketNonBlockingError

This error should never happen because a socket should always be able to be set to non-blocking mode. Unfortunately, we have seen this happen on Darwin.

Citizens in NIOPosix

Conformances

  • protocol Error

    A type representing an error value that can be thrown.

  • protocol Sendable

    A thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.