wait till getting the response from client
authorBang Kwang min <justine.bang@samsung.com>
Tue, 4 Sep 2012 03:16:54 +0000 (12:16 +0900)
committerBang Kwang min <justine.bang@samsung.com>
Wed, 5 Sep 2012 05:43:53 +0000 (14:43 +0900)
[Title] wait till getting the response from client
[Issue#] N/A
[Problem] client can't get the state because provider close socket too early
[Cause] N/A
[Solution] wait a control command
[SCMRequest] N/A

Dependancy) * below url-download should be merged beforehand
http://slp-info.sec.samsung.net/gerrit/#change,87793

Change-Id: I63fe495e2c153c6e48ad9ab8b0d945549a4fc650

src/download-provider-receiver.c

index 6346acc..85edc7b 100644 (file)
@@ -343,6 +343,7 @@ int _handle_new_connection(download_clientinfo_slot *clientinfo_list, download_c
                                }
                                ipc_send_stateinfo(request_clientinfo);
                        }
+                       ipc_receive_header(request_clientinfo->clientfd);
                }
                clear_clientinfo(request_clientinfo);
                return 0;