IDF 5.0: Unbale to set linger_timout in WIF softAP

topphisitian
Posts: 4
Joined: Mon May 15, 2023 9:17 am

IDF 5.0: Unbale to set linger_timout in WIF softAP

Postby topphisitian » Fri May 19, 2023 6:18 am

I have migrated to IDF 5.0, and found out that when working with wifi softAP, the sockets still take memory for WAIT-TIME (2 min). Thats explained in:
viewtopic.php?p=107360
https://esp32.com/viewtopic.php?t=31858

So I enabled CONFIG_LWIP_SO_LINGER in menuconfig, and added:

Code: Select all

  config.enable_so_linger = true;
  config.linger_timeout = 5;
to config, to release memory after 5 sec.
But the memory is still allocated for 2 min, like this config don't have any influence.

I ask you if you know what am I forgetting or why this isn't working.

Who is online

Users browsing this forum: Bing [Bot], MicroController and 203 guests