Skip to content

Commit dd8af04

Browse files
Follow session closure flow, even for refused sessions (#6358)
Co-authored-by: Amaury Chamayou <[email protected]>
1 parent 9c21ea3 commit dd8af04

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/enclave/rpc_sessions.h

+6
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,12 @@ namespace ccf
548548
}
549549
sessions.erase(search);
550550
}
551+
else
552+
{
553+
// Enclave doesn't know this ID, but host is still talking about it.
554+
// Continue with the normal closure flow
555+
RINGBUFFER_WRITE_MESSAGE(::tcp::tcp_closed, to_host, id);
556+
}
551557
}
552558

553559
std::shared_ptr<ClientSession> create_client(

0 commit comments

Comments
 (0)