Change-Id: I716175c16073e627a52a62176b2341c2b612953e
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
struct timeval tv;
tv.tv_sec = 3;
- setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, (struct timeval *)&tv, sizeof(tv));
+ tv.tv_usec = 0;
+ if (setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, (struct timeval *)&tv, sizeof(tv)) < 0)
+ _E("[CPU-BOOSTING-PLUGIN] Failed to set timeout of receive (error = %m)");
memset(&output, 0, sizeof(output));
retry_header: