Web Socket does not free up memory after closing
Posted: Mon Sep 11, 2023 6:47 pm
Hello
in my code I use a Web Socket registered as httpd_uri with data structure indicates this is for websocket server. The problem is that it the memory doesn't get free after clsong the websocket. It seems there is a memoery leak problem somewhere in the code?
I initialize the http server with this configuations but doesn't seem they are effective:
config.lru_purge_enable = true;
config.enable_so_linger = true;
config.linger_timeout = 1;
How to ensure the memory clears up after closing the web socket?
Regards,
Sina
in my code I use a Web Socket registered as httpd_uri with data structure indicates this is for websocket server. The problem is that it the memory doesn't get free after clsong the websocket. It seems there is a memoery leak problem somewhere in the code?
I initialize the http server with this configuations but doesn't seem they are effective:
config.lru_purge_enable = true;
config.enable_so_linger = true;
config.linger_timeout = 1;
How to ensure the memory clears up after closing the web socket?
Regards,
Sina