I'm using lwip cvs update, My software and hardware is at91sam7x256 + ucos + lwip,
I'm committed to the stability of the test lwip. my target board connects to company's LAN, so it can recieve a lot of enthernet data. sometime, when lwip get the timeouts error by the funtion sys_arch_timeouts(), I return NULL, and then, lwip doesn't work well, it debugs out information
memp_malloc: out of memory in pool PBUF_POOL
forever!
I want to known when the funtion sys_arch_timeouts() gets the error timeouts, what can be return?
My second question is in the funtion netconn_recv(). I don't use socket, so when I want to receive data, netconn_recv() is been called. In the funtion, first it asks a buf, then waits for data coming forever. sometimes, I want to close the connect in another task, but the funtion netconn_recv() doesn't return, and the buf doesn't free forever!
Thanks.