Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69c927b9 authored by DuXiao's avatar DuXiao Committed by android-build-merger
Browse files

Merge "Property: Log errno for socket connect" am: 59976b9b am: bf5200ef

am: 08ccca62

Change-Id: Idc9bfc8e2ad8bb89cd1e8642f6b62e3ee8d8a87f
parents ed44be61 08ccca62
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -372,6 +372,7 @@ class SocketConnection {

            int result = TEMP_FAILURE_RETRY(recv(socket_, data, bytes_left, MSG_DONTWAIT));
            if (result <= 0) {
                PLOG(ERROR) << "sys_prop: recv error";
                return false;
            }

@@ -379,6 +380,10 @@ class SocketConnection {
            data += result;
        }

        if (bytes_left != 0) {
            LOG(ERROR) << "sys_prop: recv data is not properly obtained.";
        }

        return bytes_left == 0;
    }