forked from apple/swift-nio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make isOpen a computed property (apple#123)
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
- Loading branch information
1 parent
8e98d84
commit 4deeaf6
Showing
6 changed files
with
216 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.