Are you also using the simpleclient present in resource/examples/? Since you mentioned ?10 notifications?, the simpleclient IS written to send the cancelObserve() request after the 10th notification. This might be a trivial thing to verify.
From: iotivity-dev-bounces at lists.iotivity.org [mailto:[email protected]] On Behalf Of Binh Dang Thien Sent: Thursday, March 23, 2017 8:44 PM To: iotivity-dev <iotivity-dev at lists.iotivity.org> Subject: [dev] Error when simulate DoS attack on IoTivity server Dear everyone, I setup IoTivity on Raspberry Pi and modify the simpleserver example (in /resource/examples folder) that reads temperature of DHT11 sensors (attached on Raspberry Pi board) and notify to the simpleclient (installed on a PC running Ubuntu). I test 2 cases: 1. No DoS attack on Raspberry Pi: everything works fine 2. Launch DoS attack on Raspberry Pi from another PC: it still works fine with around 10 notifications. However, it then returns OC_STACK_NO_OBSERVERS from the function call notifyListOfObservers. Could you explain why this happens? And how to fix this? Thanks and best regards, DANG Thien Binh Networking Laboratory, 26317 Electronic and Electrical Engineering Department School of Information and Communication Engineering Sungkyunkwan University (SKKU) Suwon 440-746, KOREA +82-31-290-4226<tel:%2B82-31-290-4226>(LAB) +82-31-299-4134<tel:%2B82-31-299-4134>(FAX) email: dtbinh at skku.edu<mailto:dtbinh at skku.edu>, binh01t2 at gmail.com<mailto:binh01t2 at gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170324/4264df68/attachment.html>
