lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] RE: Why the tcp_pcb haven't been free when I calltcp_cl


From: Kieran Mansley
Subject: Re: [lwip-users] RE: Why the tcp_pcb haven't been free when I calltcp_close()
Date: Fri, 16 Mar 2007 08:49:51 +0000

On Fri, 2007-03-16 at 07:44 +0800, geckook Xu wrote:
> yes ,when call tcp_close(),they go to FIN_WAIT1,
> I reduce the TCP_FIN_WAIT_TIMEOUT and the TCP_MSL values, but my 100
> tcp_pcb have been exhausted.
> I find it from the mem states.

Reducing the FIN_WAIT and TIME_WAIT timeouts is not something I would
recommend unless you know for sure that it will not cause you problems.
These are mechanisms that TCP uses to ensure reliable connections and
reliable transmission of data.  I'm afraid that if you have a lot of
connections in TIME_WAIT you either have to wait until they time out and
become available for reuse, reduce your connection rate so that you
don't run out in the first place, or configure more pcbs.  This isn't
due to the way lwIP is implemented - it is due to the way TCP is
designed, and would be true for all RFC compliant TCP stacks.

Kieran





reply via email to

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