From 7d5b8217756eda89d4ad49c1b72f57d6a4bdad2c Mon Sep 17 00:00:00 2001 From: Bang Kwang min Date: Mon, 3 Sep 2012 17:25:45 +0900 Subject: [PATCH] fix timeout error [Title] can not enter to timeout job statement except first timeout. [Issue#] N/A [Problem] N/A [Cause] N/A [Solution] flag move [SCMRequest] N/A Change-Id: Id75af7dcad9751975d7a493458191a01caa63462 --- src/download-provider-receiver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/download-provider-receiver.c b/src/download-provider-receiver.c index 0f90da4..6346acc 100644 --- a/src/download-provider-receiver.c +++ b/src/download-provider-receiver.c @@ -685,8 +685,6 @@ void *run_manage_download_server(void *args) //Even if no socket, downloading should be progressed. if (clientinfo_list[i].clientinfo->clientfd <= 0) continue; - if (is_timeout) - is_timeout = 0; if (FD_ISSET(clientinfo_list[i].clientinfo->clientfd, &rset) > 0) { // ignore it is not started yet. if (clientinfo_list[i].clientinfo->state <= DOWNLOAD_STATE_READY) @@ -694,6 +692,8 @@ void *run_manage_download_server(void *args) TRACE_DEBUG_INFO_MSG("FD_ISSET [%d] readset slot[%d]", clientinfo_list[i].clientinfo->clientfd, i); _handle_client_request(clientinfo_list[i].clientinfo); + if (is_timeout) + is_timeout = 0; } else if (FD_ISSET(clientinfo_list[i].clientinfo->clientfd, &exceptset) > 0) { TRACE_DEBUG_MSG("FD_ISSET [%d] exceptset slot[%d]", clientinfo_list[i].clientinfo->clientfd, i); clear_clientinfoslot(&clientinfo_list[i]); -- 2.7.4