[IOT-3286] IoTivity may hang on exit 53/29553/6
authorIurii Metelytsia <i.metelytsia@samsung.com>
Thu, 13 Jun 2019 11:10:39 +0000 (14:10 +0300)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Thu, 18 Jul 2019 17:01:59 +0000 (17:01 +0000)
commit4df2dc79a36a4f47b56be8dd88595ef9b5cbfe73
tree9905185c781c44de9e9b938ef6a571aa24ac1fa1
parenta9e1dcab20f67f17f7b327bc6938ac3ea1be3feb
[IOT-3286] IoTivity may hang on exit

1. Reference counter has been added to ssl adapter.
2. Waiting for ReceiveThread when the caipserver is stopped added.

Signed-off-by: Iurii Metelytsia <i.metelytsia@samsung.com>
Change-Id: I3ccf95ff1c851fe0d3e70f75ed00fdb1fce7bf82
resource/csdk/connectivity/inc/ca_adapter_net_ssl.h
resource/csdk/connectivity/src/adapter_util/ca_adapter_net_ssl.c
resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c
resource/csdk/connectivity/src/ip_adapter/caipadapter.c
resource/csdk/connectivity/src/ip_adapter/caipserver.c
resource/csdk/connectivity/src/tcp_adapter/catcpadapter.c
resource/csdk/connectivity/test/ssladapter_test.cpp