Part Number: TM4C129XNCZAD
I am running an HTTP web server hosted on a TM4C129XNCZAD board.
At first, the board is reachable and responds to the upcoming web requests from the browser, then the board reaches a state where the connection is refused (ERR_CONNECTION_REFUSED). I am generating this scenario using a tool that sends periodic HTTP requests to the board every 5-7 seconds.
After looking further into this behavior, I found out that this issue happens in the context of calling SockPcbFind from SockPcbResolve upon receiving a TCP packet. It seems that the TCP layer can't find a match for the upcoming connection in the pSockList. Also pSockList[SOCKPROT_TCP] points to only one socket instance and the next element in the list points to NULL. That's why we don't find a match and the web server refuses the connection.
The main concern here is that the board can't recover and accept any more connections except through resetting it.
I would appreciate it if you could give guidance on how to resolve this issue or recover from it without having to reset the board.
FYI, I previously had the same unresolved issue mentioned in the following thread:
TM4C129XNCZAD: Connecting multiple clients sending periodic HTTP requests to web server hosted on Tiva C results in net::ERR_CONNECTION_REFUSED - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums
Also, it might be useful to clarify the proper configurations to allocate memory that is mentioned in the following thread:
NDK TCP/IP Socket Connection Refused - Processors forum - Processors - TI E2E support forums
Thanks,