Fix deadlock when event_callback within an API scope 72/244272/2
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 16 Sep 2020 12:34:38 +0000 (18:04 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Thu, 17 Sep 2020 06:20:16 +0000 (11:50 +0530)
commita37aac8b32c218cc18ff9d7988e5bd49c6b1d6a0
tree26cea64e914c07636d3de4daf344282d36f3ba18
parent2dbeb638c02d3b0e705ebf194e555811a39f635e
Fix deadlock when event_callback within an API scope

The deadlock occurs when connection_close_profile() is called
when profile is in connecting state at libnet-client.

Code flow is as below:-
connection_close_profile
 -> _connection_libnet_close_profile
     -> net_close_connection
now  if (is_connecting == TRUE), then event callback is triggered
within connection_close_profile() scope via __net_abort_open_connection()

Change-Id: I92781b907625d541914b602b6449135d74d490db
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/capi-network-connection.spec
src/libnetwork.c