LwIP tcp_write() function returns ERR_MEM after running for a while
I am running a tcp server in STM32H753 MCU using LwIP driver. LwIP raw APIs are used for setting up the server. The server is sending a packet of size 200 bytes every 200ms.Ther server is connected to a single client(application running on an linux PC) The server is working properly for around 5-6 hours until the tcp_write() function returns a ERR_MEM. I have verified the return value of tcp_sndbuf() and the there is enough space in the queue. Is there any other condition when tcp_write() function throws ERR_MEM? Is there any other condition I'm overlooking?
