mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
To handle errors fired by previous ChannelHandlers. eg NIOSSLClientHandler ### Motivation: Otherwise if a ChannelHandler previous to the upgrade ChannelHandler fails the error returned is `inappropriateOperationForState` and the error fired by the original ChannelHandler is lost. Added `testReturnsErrorsFromPriorChannelHandlers`. Also had to reorganise `setUpClientChannel` slightly so I could get the result of the upgrade. --------- Co-authored-by: Cory Benfield <lukasa@apple.com>