From 04b00003e955e1011a4b9edefbb3e4c0d51196f5 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sun, 4 Apr 2021 01:51:31 +0300 Subject: [PATCH] Log ping failures --- src/messenger.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/messenger.cpp b/src/messenger.cpp index 5e75754fd..f6a8510c8 100644 --- a/src/messenger.cpp +++ b/src/messenger.cpp @@ -28,6 +28,7 @@ void osd_messenger_t::init() if (!cl->ping_time_remaining) { // 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); } } @@ -54,6 +55,7 @@ void osd_messenger_t::init() delete op; 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); } };