lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] tcp_tmr - TCP_TMR_INTERVAL


From: Kieran Mansley
Subject: Re: [lwip-users] tcp_tmr - TCP_TMR_INTERVAL
Date: Fri, 01 Sep 2006 09:21:30 +0100

On Thu, 2006-08-31 at 23:29 +0200, Timmy Brolin wrote:
> As long as TCP_TMR_INTERVAL is #defined  to the interval by which you 
> actually call the timer function, any value should be fine. Anything 
> below 250 or so should be fine.

That may be what was intended with those defines, but the code doesn't
use them that way (in 1.1.0 at least - I don't have 1.1.1 to hand to
check that).  The tcp_fast_tmr() function is called every time tcp_tmr()
is called, and the tcp_slow_tmr() function is called every other time.
There is no check there to divide the required time by TCP_TMR_INTERVAL
before deciding whether to invoke either the fast or slow timer
functions.  This would be good idea though if people need the
flexibility of calling tcp_tmr() more frequently.

Kieran 





reply via email to

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