Skip to content

Commit 9c21ea3

Browse files
authored
Zero out idle time when deallocating the socket (#6357)
1 parent 17c4776 commit 9c21ea3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/host/rpc_connections.h

+2
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ namespace asynchost
345345
// Invalidating the TCP socket will result in the handle being closed. No
346346
// more messages will be read from or written to the TCP socket.
347347
sockets[id] = nullptr;
348+
idle_times.erase(id);
349+
348350
RINGBUFFER_WRITE_MESSAGE(::tcp::tcp_close, to_enclave, id);
349351

350352
return true;

0 commit comments

Comments
 (0)