Hello, I'm starting to have a better understanding of the iotivity-lite code. What I've seen is that when my application (android) do a discovery request, a session is created. In some embedded device, with not a lot of RAM, if it receives many requests before the idle timeout, it will go out of memory and crash.
I'm using OC_DYNAMIC, and found that the issue for me was in oc_tls.c allocation ssl contexts. One solution that works for me was to change the OC_MEMB at the top of the file to OC_MEMB_FIXED and make sure that OC_MAX_TLS_PEERS is defined in oc_config.h Is my understanding correct? Thanks -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#10417): https://iotivity.groups.io/g/iotivity-dev/message/10417 Mute This Topic: https://groups.io/mt/79309182/21656 Group Owner: [email protected] Unsubscribe: https://iotivity.groups.io/g/iotivity-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
