lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] dropping the TIME-WAIT state


From: psheer
Subject: [lwip-users] Re: [lwip] dropping the TIME-WAIT state
Date: Wed, 08 Jan 2003 22:55:37 -0000

Doesn't this effectively mean that only
MEMP_NUM_TCP_PCB new connections are allowed
every 2 * TCP_MSL / TCP_SLOW_INTERVAL seconds??

This would be a serious limitation.

-paul

> Hi!
> 
> On Wednesday 08 May 2002 20.11, you wrote:
> > I think a better behaviour is for lwIP to reallocate to a
> > minimal struct after the pcb enters TIME-WAIT *shrug*
> 
> That was the thay it was done in earlier versions of lwIP but it was dropped 
> because it wasn't a very good way of doing things when the memory for the 
> connection state was preallocated. Since there now is a fixed amount of 
> connections, there is no need to use a smaller structure for the TIME-WAIT 
> connections - they use the same amount of memory anyway.
> 
> Of course, in your case things are different because you do heap allocation 
> of the TCP PCBs. I have been thinking about introducing limits to the amount 
> of connections (determined by a dynamic configuration mechanism). That 
> probably would be helpful in this case.
> 
> /adam
> -- 
> Adam Dunkels <address@hidden>
> http://www.sics.se/~adam
> [This message was sent through the lwip discussion list.]


---------------------------------------------
This message was sent using World Mail.
http://www.worldonline.co.za


[This message was sent through the lwip discussion list.]




reply via email to

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