mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
Motivation: Reduce memory footprint of BaseSocket and FileHandle Modifications: - made isOpen a computed var from 'descriptor >= 0' - add withSocketpair to TestUtils - use real pipe and socketpair file descriptors for tests - BaseSocket and FileHandle init check precondition 'descriptor >= 0' Result: - isOpen no longer requires storage space - close() sets descriptor to -1 - descriptor property changed from let to var - tests will need to use valid file descriptors