lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] TCP causing out of mem pool [RAW]


From: Kieran Mansley
Subject: Re: [lwip-users] TCP causing out of mem pool [RAW]
Date: Tue, 28 Jul 2009 17:45:58 +0100

On Tue, 2009-07-28 at 08:35 -0700, Chris_S wrote:

> That's problem #1.  They don't seem to come back.
> It just keeps burning through them until all 31 are gone.
> I gave my console output listing before.  They all get used up.
> Isn't this the same issue as not Closing above?

Short on time at the moment, so I'll just address this one critical
point. lwIP goes through all 31 PCBs, but should then recycle them from
TIME_WAIT either when the timer expires or it needs one and there aren't
any free.  You mentioned changing the TCP_MSL and then seeing them
recycled, so that seems to be working.  If it tries to allocate one and
finds there aren't any free, it prints out the message you saw, but
should then take one from TIME_WAIT (at least in current code, not sure
when this was introduced) - if you think this isn't working, please
check (should be easy - see the first few lines of tcp_alloc() where it
calls tcp_kill_timewait())

Kieran







reply via email to

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