esp-rgb-led-matrix
esp-rgb-led-matrix copied to clipboard
[Bug] High SSL heap usage can cause reset
A outgoing https:// connection needs about 47 kByte of heap memory. If several plugins requests informations at the same time, it will cause a reset by AsyncTcpSock. AsyncTcpSock uses std::dequeue which allocates memory and causes an system abort.
Idea: Serialize all AsyncHttpClient requests.
- https://github.com/Mbed-TLS/mbedtls/issues/1203
- https://github.com/espressif/arduino-esp32/issues/6286
- https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/mbedtls.html#performance-and-memory-tweaks
- https://docs.espressif.com/projects/esp-idf/en/v4.4.6/esp32/api-reference/kconfig.html#config-mbedtls-ssl-max-content-len