esp-rgb-led-matrix icon indicating copy to clipboard operation
esp-rgb-led-matrix copied to clipboard

[Bug] High SSL heap usage can cause reset

Open BlueAndi opened this issue 6 months ago • 1 comments

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.

BlueAndi avatar Dec 12 '23 18:12 BlueAndi

  • 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

BlueAndi avatar Dec 18 '23 20:12 BlueAndi