Add log in case of failure of recv due to interrupt 52/282752/1
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 11 Oct 2022 06:46:30 +0000 (15:46 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Tue, 11 Oct 2022 06:46:30 +0000 (15:46 +0900)
Change-Id: Ib3e54dd7993afb33f75bea504de319ce70e8d9a4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/common/socket/abstract_socket.cc

index 6cc9063..6d60f36 100644 (file)
@@ -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) {