http server memory issue
Posted: Mon Oct 30, 2023 5:12 pm
Hello
I use esp-idf v4.4 http server with websocket and noticed tha the code leaks memory (by calling esp_get_free_heap_size()) when a new client connection from a browser happens. The code doesn't release the heap even after the connection gets closed.
here is the server configs that I use:
config.lru_purge_enable = true;
config.max_open_sockets =4;
config.enable_so_linger = true;
config.linger_timeout = 1;
Any idea what can be wrong?
I use esp-idf v4.4 http server with websocket and noticed tha the code leaks memory (by calling esp_get_free_heap_size()) when a new client connection from a browser happens. The code doesn't release the heap even after the connection gets closed.
here is the server configs that I use:
config.lru_purge_enable = true;
config.max_open_sockets =4;
config.enable_so_linger = true;
config.linger_timeout = 1;
Any idea what can be wrong?