lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Retransmit too quick?


From: Sergio R. Caprile
Subject: Re: [lwip-users] Retransmit too quick?
Date: Mon, 06 Jul 2015 17:13:34 -0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]