- DOWNLOAD_ERROR_IO_ERROR
Change-Id: I4b7e4cd23925380ed4225ad2d8a2169f62cd55d7
Signed-off-by: min7.choi <min7.choi@samsung.com>
ts.tv_nsec = 20000000;
nanosleep(&ts, NULL);
} else if (ret >= 0) {
- struct timeval tv_timeo = { 1, 500000 }; // 1.5 second
+ struct timeval tv_timeo = { 5, 500000 }; // 5.5 second
g_dp_client->channel = ret;
if (setsockopt(g_dp_client->channel, SOL_SOCKET, SO_RCVTIMEO, &tv_timeo, sizeof(tv_timeo)) < 0) {
TRACE_STRERROR("[CRITICAL] setsockopt SO_RCVTIMEO");
}
// blocking & timeout to prevent the lockup by client.
- struct timeval tv_timeo = {1, 500000}; // 1.5 sec
+ struct timeval tv_timeo = {5, 500000}; // 5.5 sec
if (setsockopt(clientfd, SOL_SOCKET, SO_RCVTIMEO, &tv_timeo,
sizeof(tv_timeo)) < 0) {
TRACE_ERROR("failed to set timeout in blocking socket");