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: Xun Chen
Subject: Re: [lwip-users] Retransmit too quick?
Date: Tue, 07 Jul 2015 12:21:26 -0400
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Thanks for your pointers! I will check my codes according to your suggestion

On 7/7/2015 12:00 PM, address@hidden wrote:
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
******************************************





reply via email to

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