library: insert request info to hash table before sending request 37/47337/1 accepted/tizen/mobile/20150902.235955 accepted/tizen/tv/20150903.000136 accepted/tizen/wearable/20150903.000403 submit/tizen/20150902.103836
authorSuchang Woo <suchang.woo@samsung.com>
Wed, 2 Sep 2015 08:02:50 +0000 (17:02 +0900)
committerSuchang Woo <suchang.woo@samsung.com>
Wed, 2 Sep 2015 08:02:50 +0000 (17:02 +0900)
commit82c66447bd4d7c69467cc17395094f025e99dbfc
tree0be923723c96b9d8422ff4513bd0a8fda0558dde
parentbb6a4d6772c603cc8f11850611f9e1afdbd7abcc
library: insert request info to hash table before sending request

In multi-thread context, a response can be received before inserting
request info to hash table. In that case, the response is dropped
and it makes timeout of the request.
To prevent a response drop and timeout, request info should be inserted
before sending request to Buxton daemon.

Change-Id: I4663f206c62138fc6076d8286922d29bd814a752
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
lib/buxton2.c