[IOT-3044] No response for Ping message 43/25443/1
authorVeeraj Khokale <veeraj.sk@samsung.com>
Thu, 5 Apr 2018 09:35:54 +0000 (15:05 +0530)
committerMushfiqul Islam <mmiantu@gmail.com>
Thu, 24 May 2018 10:02:59 +0000 (10:02 +0000)
commit6b637551230a696d0e0bc98a67244438d4e02c47
treec010d5dc2381e76ba4498d9c425074499d9c5daf
parente6f2764e158c13b267d62c40b28555fafab42441
[IOT-3044] No response for Ping message

TCP adapter disconnects the session whenever
the data to be sent has an empty payload.
Since ping messages and signaling messages
need to have an empty payload they are dropped.
Fix this by checking if the message is a signaling
message before dropping it.

Change-Id: I1cfad27fcfd5cf3a42510412e6555b84ea905259
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
(cherry picked from commit c7dce6b522604e2c6b99847c88a00f7da275c08d)
resource/csdk/connectivity/src/camessagehandler.c
resource/csdk/connectivity/src/tcp_adapter/catcpadapter.c