IDF 5.0: Unbale to set linger_timout in WIF softAP
Posted: 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:
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.
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;
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.