lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] (no subject)


From: Kieran Mansley
Subject: Re: [lwip-users] (no subject)
Date: Thu, 07 Jul 2011 11:57:04 +0100

On Thu, 2011-07-07 at 18:50 +0800, Anirudha Sarangi wrote:
> Just cross-checked. There is a mistake. With my present timer setup,
> tcp_tmr is 
> getting called every 350 msec instead of every 250 msec. Do you think
> it could 
> be causing my issue ?

No, the difference between every 350ms and every 250ms would probably be
unnoticable in TCP behaviour (your retransmissions would just start a
few fractions of a second later).

> Then as I understand, once I am in tcp_tmr, I should disable all
> other 
> interrupts so that there could be no corruption. Will that be fine?

That's one way.  I prefer to arrange it such that the interrupts do not
call into lwIP, but instead queue work to be processed by the main loop.
You should also worry about application threads calling in, unless you
only call lwIP API functions from the context that is calling tcp_tmr()
in which case they will be naturally excluded.

Kieran




reply via email to

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