cancel
Showing results for 
Search instead for 
Did you mean: 

LwIP Netconn_rcv not returning when it should

MStra.3
Associate III

I have a webserver running on an STM32F407. I have static pages and one dynamic page that updates every 1 second - it just displays the status of the FreeRTOS tasks. Everything is working except that occasionally (3 - 40 seconds) the dynamic page quits updating. Here is what I have determined:

I can see in Wireshark where the request went out from the browser. I then put a breakpoint after netconn_rcv(). After a while (up to 10 seconds) it finally returns with a Connection Closed error (-15). If I let it run again, the next time it returns (which is immediately) it gives me the request that was sent a long time ago from the browser! It seems that somehow it got stuck not seeing the packet get received even though it had to have been.

Any ideas why this would happen or how to determine what is going on?

Mike.

0 REPLIES 0