[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] dropping the TIME-WAIT state
From: |
Adam Dunkels |
Subject: |
[lwip-users] Re: [lwip] dropping the TIME-WAIT state |
Date: |
Wed, 08 Jan 2003 23:00:31 -0000 |
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.]