s
------------------------------
Message: 5
Date: Mon, 06 Jul 2015 17:13:34 -0300
From: "Sergio R. Caprile" <address@hidden>
To: address@hidden
Subject: Re: [lwip-users] Retransmit too quick?
Message-ID: <address@hidden>
Content-Type: text/plain; charset=utf-8
Again, you should check how you are handling timers in your port.
sys_check_timeouts() needs a consistent time base, it expects you
provide a sys_now() function which returns time in milliseconds.
You should call sys_check_timeouts() from your main loop as frequently
as possible so it does its jobs, it will take care of time by using
sys_now().
Sorry, I can't check/follow your code, you should send the first block
when you need it and following blocks will be sent via the tcp_sent()
callback, check the examples.
And, you should not be freeing pbufs the way you are doing in
echo_recv(), please check the examples and the wiki
http://lwip.wikia.com/wiki/Raw/TCP
------------------------------
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
End of lwip-users Digest, Vol 143, Issue 6
******************************************