Skip to content

Commit

Permalink
Follow session closure flow, even for refused sessions (#6358)
Browse files Browse the repository at this point in the history
Co-authored-by: Amaury Chamayou <amchamay@microsoft.com>
  • Loading branch information
eddyashton and achamayou authored Jul 12, 2024
1 parent 9c21ea3 commit dd8af04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/enclave/rpc_sessions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<ClientSession> create_client(
Expand Down

0 comments on commit dd8af04

Please sign in to comment.