[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: |
psheer |
Subject: |
[lwip-users] Re: [lwip] dropping the TIME-WAIT state |
Date: |
Wed, 08 Jan 2003 23:16:36 -0000 |
thanks for this explanation, Adam
the problem is that lwIP can serve 30 web pages per second on
my board, although my web server only has a heap of about 128kB.
This means 3600 TIME-WAIT pcbs in two minutes - which easily
consumes all my memory. My web server already drops connections
when memory is low - so it merely translates to a performance
knock.
I think a better behaviour is for lwIP to reallocate to a
minimal struct after the pcb enters TIME-WAIT *shrug*
In the mean time I am just going to,
/* Check if this PCB has stayed long enough in TIME-WAIT */
if((u32_t)(tcp_ticks - pcb->tmr) > 10000 / TCP_SLOW_INTERVAL) {
++pcb_remove;
}
and be done with
best
-paul
---------------------------------------------
This message was sent using World Mail.
http://www.worldonline.co.za
[This message was sent through the lwip discussion list.]