From dd8af041b93613991c4e35533717ffdf15c7e325 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Fri, 12 Jul 2024 14:27:42 +0100 Subject: [PATCH] Follow session closure flow, even for refused sessions (#6358) Co-authored-by: Amaury Chamayou --- src/enclave/rpc_sessions.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/enclave/rpc_sessions.h b/src/enclave/rpc_sessions.h index f8c9db55b..b1df9b9a3 100644 --- a/src/enclave/rpc_sessions.h +++ b/src/enclave/rpc_sessions.h @@ -548,6 +548,12 @@ namespace ccf } sessions.erase(search); } + else + { + // Enclave doesn't know this ID, but host is still talking about it. + // Continue with the normal closure flow + RINGBUFFER_WRITE_MESSAGE(::tcp::tcp_closed, to_host, id); + } } std::shared_ptr create_client(