Log ping failures

rel-0.5
Vitaliy Filippov 2021-04-04 01:51:31 +03:00
parent 307c1731c1
commit 04b00003e9
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ void osd_messenger_t::init()
if (!cl->ping_time_remaining) if (!cl->ping_time_remaining)
{ {
// Ping timed out, stop the client // Ping timed out, stop the client
printf("Ping timed out for OSD %lu (client %d), disconnecting peer\n", cl->osd_num, cl->peer_fd);
stop_client(cl->peer_fd, true); stop_client(cl->peer_fd, true);
} }
} }
@ -54,6 +55,7 @@ void osd_messenger_t::init()
delete op; delete op;
if (fail_fd >= 0) if (fail_fd >= 0)
{ {
printf("Ping failed for OSD %lu (client %d), disconnecting peer\n", cl->osd_num, cl->peer_fd);
stop_client(fail_fd, true); stop_client(fail_fd, true);
} }
}; };