100% CPU usage by iotivity stack 58/208358/1
authorsourav bhuwalka <s.bhuwalka@samsung.com>
Mon, 3 Jun 2019 07:16:47 +0000 (12:46 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 24 Jun 2019 00:51:14 +0000 (09:51 +0900)
commit4e5cc853a90507c788e30c2a5dfe19f71305c9bb
treed751c469a77f524809d8591f63da8c731b924c9f
parent54a630f76c7854d28d724949b2a012e7259f6f71
100% CPU usage by iotivity stack

Here before the max number of observers was 255 and when more
than 255 observers were there an infinite loop was running.
Increasing the number of observers and changing the logic so
that infinite loop should not be run when observer count reaches
max number of observers.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/3f9cb8af60cd5ed929ed876d95e82f2650309f9c
(cherry picked from 3f9cb8af60cd5ed929ed876d95e82f2650309f9c)

Change-Id: Ib0bb86817d2dbf8c2d5f5806cb49ffa2e002cd21
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
resource/c_common/ocrandom/include/ocrandom.h
resource/c_common/ocrandom/src/ocrandom.c
resource/csdk/stack/include/internal/ocobserve.h
resource/csdk/stack/include/octypes.h
resource/csdk/stack/src/ocobserve.c
service/notification/src/provider/NSProviderNotification.c
service/notification/src/provider/NSProviderTopic.c