FreeRTOS 7

At the start I create a connection:
        conn = netconn_new(NETCONN_TCP);
        conn->recv_timeout = 60000; // timeout = 60sec

And it works  good for hours.
And when server close connection I catch a timeout of netconn_recv
operation. So I'am trying to reconnect:
...
netconn_delete(conn);
vTaskDelay(1000);
conn = netconn_new(NETCONN_TCP);
conn->recv_timeout = 60000;
...

And what I get: from this point stack receive every data packet whith delay
exactly = 60seconds! In terminal I see gprs-modem sends packets correctly,
but stack holding them until 60sec elapsed.

What can be wrong?
-- 
View this message in context: 
http://old.nabble.com/lwIP-1.3.2-netconn_new-netconn_delete-issue-tp32738694p32738694.html
Sent from the lwip-users mailing list archive at Nabble.com.


_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to