In ConnectionStateMachine, the .closed(clientInitiated:error:) state indicates whether the client or server closed the connection via the clientInitiatedFlag. However, at no time in the current code is clientInitiated ever set to false, and as this is the only way for a .serverClosedConnection error to be generated, it never will be.
In
ConnectionStateMachine
, the.closed(clientInitiated:error:)
state indicates whether the client or server closed the connection via theclientInitiatedFlag
. However, at no time in the current code isclientInitiated
ever set tofalse
, and as this is the only way for a.serverClosedConnection
error to be generated, it never will be.