From 911a95e4461c1da40c9b23b06ad5d3ff4dfd9cd2 Mon Sep 17 00:00:00 2001 From: Gus Cairo Date: Fri, 15 Nov 2024 09:24:25 +0000 Subject: [PATCH] Fire error down pipeline to properly close H2 multiplexer inbound stream --- .../Server/Connection/ServerConnectionManagementHandler.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/GRPCNIOTransportCore/Server/Connection/ServerConnectionManagementHandler.swift b/Sources/GRPCNIOTransportCore/Server/Connection/ServerConnectionManagementHandler.swift index eb66466..d607b51 100644 --- a/Sources/GRPCNIOTransportCore/Server/Connection/ServerConnectionManagementHandler.swift +++ b/Sources/GRPCNIOTransportCore/Server/Connection/ServerConnectionManagementHandler.swift @@ -334,6 +334,7 @@ package final class ServerConnectionManagementHandler: ChannelDuplexHandler { package func errorCaught(context: ChannelHandlerContext, error: any Error) { if self.closeConnectionOnError(error) { + context.fireErrorCaught(error) context.close(mode: .all, promise: nil) } }