mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Motivation: We should return a failed EventLoopFuture when getOption(...) / setOption(...) is called on a closed Channel as otherwise it may not be safe to modify the Channel ioptions after its closed. Modifications: - Add guards that check if the Channel is still open and if not fail the operation. - Add testcase Result: Calling getOption(...) / setOption(...) on a closed Channel fails.