replace response code in keepalive of TCP
authorjihwan.seo <jihwan.seo@samsung.com>
Wed, 27 Apr 2016 23:06:28 +0000 (08:06 +0900)
committerJon A. Cruz <jon@joncruz.org>
Tue, 17 May 2016 06:41:37 +0000 (06:41 +0000)
since Valid response code only used to indicate that
response identified by the entity-tag(ETag option)
to use Changed code is more suitable.

Change-Id: I8ee3ea6e06ae49c4b005a024352cf5ff36d00588
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7951
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
resource/csdk/stack/src/oickeepalive.c

index c94bb85..869e6ab 100644 (file)
@@ -393,7 +393,7 @@ OCStackResult HandleKeepAlivePUTRequest(const CAEndpoint_t* endPoint,
     entry->timeStamp = OICGetCurrentTime(TIME_IN_US);
 
     // Send response message.
-    SendDirectStackResponse(endPoint, requestInfo->info.messageId, CA_VALID, requestInfo->info.type,
+    SendDirectStackResponse(endPoint, requestInfo->info.messageId, CA_CHANGED, requestInfo->info.type,
                             requestInfo->info.numOptions, requestInfo->info.options,
                             requestInfo->info.token, requestInfo->info.tokenLength,
                             requestInfo->info.resourceUri);