[CONPRO-1429] 100% CPU usage by iotivity stack 44/208344/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:49:39 +0000 (09:49 +0900)
commit29c1fca0c716c0d5846d97ca3c05deefe8c7ef47
tree436593d7a4dc4b904107d2e5c158413f0fe48767
parentce2235473629f160c040a0c651a060711eab30f0
[CONPRO-1429] 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