in Sources/NIOTransportServices/NIOTSConnectionChannel.swift [838:847]
mutating func closeInput() throws {
switch self {
case .active(.open):
self = .active(.halfClosedRemote)
case .active(.halfClosedLocal):
self = .active(.closed)
case .idle, .registered, .activating, .active(.halfClosedRemote), .active(.closed), .inactive:
throw NIOTSErrors.InvalidChannelStateTransition()
}
}