Increase delay in presence notifications to avoid stability issues.
authorMandeep Shetty <mandeep.shetty@intel.com>
Mon, 8 Jun 2015 17:22:35 +0000 (10:22 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 9 Jun 2015 16:50:07 +0000 (16:50 +0000)
The C sample server, ocserver.cpp had a delay of 5 seconds before
sending out presence notifications. Failing to start the client would
cause missed notifications.
Increased delay to avoid false stability issues when testing.
This addresses IOT-546.

Change-Id: I2c9a7810d71886ff3abe7024c1f583bcd4ab65c5
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1215
Reviewed-by: Mark Tung <mark.y.tung@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp

index b2c5ffdfd1d1b52f9cd7a3bac82f86d0c4ceeb17..2d8bd543d0010a2f97ff7138464ef0dbdddd913c 100644 (file)
@@ -797,7 +797,7 @@ void *ChangeLightRepresentation (void *param)
 #ifdef WITH_PRESENCE
 void *presenceNotificationGenerator(void *param)
 {
-    sleep(5);
+    sleep(10);
     (void)param;
     OCDoHandle presenceNotificationHandles[numPresenceResources];
     OCStackResult res = OC_STACK_OK;