Add a maximum observer TTL of 24 hours
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Wed, 7 Sep 2016 07:30:45 +0000 (16:30 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 24 Oct 2016 08:21:28 +0000 (08:21 +0000)
commit2cf37e8101597b7bee056f77a1dddb872defc637
tree11ecd379c2233a1aa9f71c43f1e0b5cd5890a3dd
parent8b2792228fd80186a99ec5cea0dac30c00086dfc
Add a maximum observer TTL of 24 hours

A server that transmits notifications mostly in non-confirmable
messages MUST send a notification in a confirmable message instead of
a non-confirmable message at least every 24 hours. This prevents a
client that went away or is no longer interested from remaining in the
list of observers indefinitely.

Change-Id: Ie676f9f5f394fa094b4f2d9fd3a72e2d38d21b24
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11497
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/src/tcp_adapter/catcpserver.c
resource/csdk/stack/include/internal/ocobserve.h
resource/csdk/stack/include/internal/ocstackinternal.h
resource/csdk/stack/src/ocobserve.c
resource/csdk/stack/src/ocstack.c