mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
### Motivation: `read` should never return `EINVAL`. If it does return it though it is a bug inside NIO and we should precondition for it similar to what we do for `EBADF` & `EFAULT`. Closes https://github.com/apple/swift-nio/issues/1339 ### Modifications: This PR adds a new precondition for `EINVAL` and adds test that exercise this precondition. ### Result: We are now preconditioning against `read` returning `EINVAL`.