From: daeken.kwon Date: Tue, 6 Oct 2015 05:32:32 +0000 (+0900) Subject: [IOT-762] Something wrong with handling unicast presence response - client always... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63fb9125f3e204305355c27461ebb919d74a3e30;p=contrib%2Fiotivity.git [IOT-762] Something wrong with handling unicast presence response - client always get "PRESENCE_TIMEOUT" < Cause > ocstack don't do ResetPresenceTTL() after getting presence response from server because there was no change in sequnceNumber < Solution > To resolve this case, it is just needed to put ResetPresenceTTL() before exit in this caseTo resolve this case, it seems that we just put ResetPresenceTTL() before exit in this case Change-Id: If1e32692d3b859cea84382bded0cceecf42874d5 Signed-off-by: daeken.kwon Reviewed-on: https://gerrit.iotivity.org/gerrit/3581 Reviewed-by: Uze Choi Tested-by: jenkins-iotivity Reviewed-by: Patrick Lankswert --- diff --git a/resource/csdk/stack/src/ocstack.c b/resource/csdk/stack/src/ocstack.c old mode 100644 new mode 100755 index cf2ccb8..d458b22 --- a/resource/csdk/stack/src/ocstack.c +++ b/resource/csdk/stack/src/ocstack.c @@ -931,6 +931,8 @@ OCStackResult HandlePresenceResponse(const CAEndpoint_t *endpoint, if(cbNode->sequenceNumber == response.sequenceNumber) { OC_LOG(INFO, TAG, "No presence change"); + ResetPresenceTTL(cbNode, maxAge); + OC_LOG_V(INFO, TAG, "ResetPresenceTTL - TTLlevel:%d\n", cbNode->presence->TTLlevel); goto exit; }