Fix presence timeout issue.
authorMandeep Shetty <mandeep.shetty@intel.com>
Thu, 16 Apr 2015 21:56:17 +0000 (14:56 -0700)
committerErich Keane <erich.keane@intel.com>
Mon, 20 Apr 2015 17:18:01 +0000 (17:18 +0000)
commitc5708b183691534eb5234e183f6073c5e07ebfe0
tree62d80c9b22a9e410ccc23d69e7e2911e57822dcb
parenta2a71aa0f14139d06331301ef0b4efb518c7ae3e
Fix presence timeout issue.

The server was not receiving the "Are you alive?" ping from the client
on presence check because token length was not included by the client.
Added token length to fix that.

The client app was timing out on presence notfications even though
the server was online. We were not resetting the client timer when we
get the servers "I am alive" message. Added resetting timeout logic.

Change-Id: Ibded89835e62cc283882c897ffe98c0fbde7f12c
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/759
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/csdk/stack/src/ocstack.c