[HTTPConnectionPool] StateMachine has explicit function for HTTP1 connection close (#448)

This commit is contained in:
Fabian Fett
2021-10-01 12:50:13 +02:00
committed by GitHub
parent 2bd88855b4
commit a6ca288e18
4 changed files with 10 additions and 10 deletions
@@ -214,7 +214,7 @@ extension HTTPConnectionPool {
}
/// A connection has been unexpectedly closed
mutating func connectionClosed(_ connectionID: Connection.ID) -> Action {
mutating func http1ConnectionClosed(_ connectionID: Connection.ID) -> Action {
guard let (index, context) = self.connections.failConnection(connectionID) else {
// When a connection close is initiated by the connection pool, the connection will
// still report its close to the state machine. In those cases we must ignore the