2018-10-05 03:48 AM
Hi
I'm using STM32F439 Dev Board and LWIP as TCP/IP stack; I'm using TCP echo
server example. the board is connected to PC. when I send a message from PC
to the board, it echoes back the message. But there is a problem. after
sending exactly 1000 messages I don't receive the message from the board
anymore. I used RAW and NETCONN API and both of them had the same problem.
The problem For UDP echo server/client there isn't. Please help me to
resolve this issue
2018-10-07 02:24 AM
It seems surprising that it is exactly 1000 messages.
How do you send those 1000 messages? Do you (for example) send 1 per second from the PC?
Do you get any diagnostic messages from LWIP?
How does the Wireshark trace differ before and during/after the failure?
You could have a memory-leak and get an allocation failure after that many messages.
Remember that TCP takes significant (tens of seconds) time to "tear-down" the link, and the server should keep information about a link until that time has expired. So if you make too many connections over a short period, the server will run out of memory.
Hope this helps,
Danish
2018-10-08 04:14 AM
Thanks for your answer. the problem resolved. I used another IDE then the problem resolved!!!