Skip to content

Commit

Permalink
Follow session closure flow, even for refused sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton committed Jul 12, 2024
1 parent 91d4580 commit 16e86a4
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 16e86a4

Please sign in to comment.