How to tune LwIP to receive more incoming connections?
Hi, I've got FreeRTOS and LwIP running on an STM32F746. The application has a TCP socket listening for incoming connections. Incoming connections are coming from multiple sources and unfortunately I'm seeing some of the connections get an ECONNRESET error. I've tried turning up the number of TCP connections but this only seems to make the time between these ECONNRESETs greater and does not get rid of them completely. I'm wondering what other LwIP parameters I can tweak to help resolve this?
I was able to track down why the ECONNRESETs are happening. I've traced it to the "tcp_abandon" function getting called. The documentation indicates this function "Abandons a connection and optionally sends a RST to the remote host. Delete the local protocol control block. This is done when a connection is killed because of shortage of memory." I've tried tweaking the memory settings for LwIP but to no avail. Can anyone suggest settings to help with this?
Thanks,
Doug Burrell
