atanisoft / Esp32OlcbIO

ESP32 OpenLCB IO Board
9 stars 5 forks source link

Web: Rework CDIRequestProcessor to queue requests #1

Closed atanisoft closed 1 year ago

atanisoft commented 3 years ago

Currently the code will create N instances of CDIRequestProcessor where N is the number of requests. This causes the heap to become dangerously low at times and can lead to heap fragmentation.

It would be better to allocate a single instance of CDIRequestProcessor and send it requests similar to openlcb::MemoryConfigClient.