Crash in select 41/215641/1
authorsourav bhuwalka <s.bhuwalka@samsung.com>
Wed, 9 Oct 2019 17:19:09 +0000 (22:49 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 14 Oct 2019 01:37:50 +0000 (10:37 +0900)
commita7c63a03c653767e52cfc3da8511e7e3234e7efa
tree68bf271973f932686cba654b86bb47b37bdcacdc
parent5df5d064bf86cde0b2f01346cffdffdb3b63844c
Crash in select

When the system remains idle i.e. there is no exchange of data then
poll would be called repeatedly very fast.some of the fields/parameters
inside poll are not getting set/reset by kernel on calling repeatedly.
So applying a sleep whenever poll gets timed out.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/585
(cherry-picked from 4cc2d76d5835a4ccb9d7a7569376e8d0938db264)

Change-Id: I33dca282cdc9406d543b8f887bb8a5f576b7f4b3
Signed-off-by: sourav bhuwalka <s.bhuwalka@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
resource/csdk/connectivity/src/tcp_adapter/catcpserver.c