When EAGAIN error occurs, the rpc-port waits for POLLIN event.
If the timeout error occurs, the rpc-port prints the error log.
Change-Id: Icfaf163226072986e1d99e08a307ad2eb7ff83e0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
return RPC_PORT_ERROR_IO_ERROR;
} else if (nb == -1) {
if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) {
- LOGI("read_socket: %d errno, wait and retry ...", errno);
bool can_read = false;
while (!can_read && max_timeout > 0) {
auto start = std::chrono::steady_clock::now();