Skip to content

Commit

Permalink
Zero out idle time when deallocating the socket (#6357)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtropets authored Jul 12, 2024
1 parent 17c4776 commit 9c21ea3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/host/rpc_connections.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ namespace asynchost
// Invalidating the TCP socket will result in the handle being closed. No
// more messages will be read from or written to the TCP socket.
sockets[id] = nullptr;
idle_times.erase(id);

RINGBUFFER_WRITE_MESSAGE(::tcp::tcp_close, to_enclave, id);

return true;
Expand Down

0 comments on commit 9c21ea3

Please sign in to comment.