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) } }