From e3b0ea1ffcdb85421e50a194034bc07c8cb6f178 Mon Sep 17 00:00:00 2001 From: Dongha Kim Date: Fri, 20 Dec 2024 20:56:20 -0700 Subject: [PATCH] Add commnets. --- core/federated/RTI/rti_remote.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/federated/RTI/rti_remote.c b/core/federated/RTI/rti_remote.c index cc654e3e0..4e5778b2e 100644 --- a/core/federated/RTI/rti_remote.c +++ b/core/federated/RTI/rti_remote.c @@ -1008,7 +1008,7 @@ void send_reject(int* socket_id, unsigned char error_code) { if (write_to_socket(*socket_id, 2, response)) { lf_print_warning("RTI failed to write MSG_TYPE_REJECT message on the socket."); } - // Close the socket. + // Close the socket without reading until EOF. shutdown_socket(socket_id, false); LF_MUTEX_UNLOCK(&rti_mutex); } @@ -1394,7 +1394,7 @@ void lf_connect_to_federates(int socket_descriptor) { if (rti_remote->authentication_enabled) { if (!authenticate_federate(&socket_id)) { lf_print_warning("RTI failed to authenticate the incoming federate."); - // Close the socket. + // Close the socket without reading until EOF. shutdown_socket(&socket_id, false); // Ignore the federate that failed authentication. i--; @@ -1462,7 +1462,7 @@ void* respond_to_erroneous_connections(void* nothing) { if (write_to_socket(socket_id, 2, response)) { lf_print_warning("RTI failed to write FEDERATION_ID_DOES_NOT_MATCH to erroneous incoming connection."); } - // Close the socket. + // Close the socket without reading until EOF. shutdown_socket(&socket_id, false); } return NULL;