Web Socket does not free up memory after closing

sinmosh
Posts: 6
Joined: Mon Oct 17, 2022 3:06 am

Web Socket does not free up memory after closing

Postby sinmosh » 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

Who is online

Users browsing this forum: Bing [Bot] and 80 guests