From 526f140abe152252572324624a94286b62799b22 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Tue, 11 Oct 2022 15:46:30 +0900 Subject: [PATCH] Add log in case of failure of recv due to interrupt Change-Id: Ib3e54dd7993afb33f75bea504de319ce70e8d9a4 Signed-off-by: Ilho Kim --- src/common/socket/abstract_socket.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/socket/abstract_socket.cc b/src/common/socket/abstract_socket.cc index 6cc9063..6d60f36 100644 --- a/src/common/socket/abstract_socket.cc +++ b/src/common/socket/abstract_socket.cc @@ -76,6 +76,7 @@ int AbstractSocket::ReceiveData(void* buf, unsigned int size) { return -errno; } else if (recv_byte < 0) { if (errno == EINTR) { + LOG(WARNING) << "Interrupt occuered, try to receive data continue"; continue; } else if (errno == EAGAIN) { if (is_blocking) { -- 2.7.4