Skip to content

Commit

Permalink
Add commnets.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakio815 committed Dec 21, 2024
1 parent 996896c commit e3b0ea1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/federated/RTI/rti_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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--;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e3b0ea1

Please # to comment.