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: geckook Xu
Subject: Re: [lwip-users] RE: Why the tcp_pcb haven't been free when I calltcp_close()
Date: Fri, 16 Mar 2007 07:44:31 +0800

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.
Can you look into my code and give me some advice.


> When I call tcp_close(),the program will send FIN,

At which point the connection will (or at least should) move from
ESTABLISHED to FIN_WAIT1.

> and then the
> receiver will reply FIN

At which point we'll go through FIN_WAIT2 to TIME_WAIT.

> But the tcp_pcb haven't been free after this operation.

It will have to wait to timeout from TIME_WAIT before it is freed.

However, you said in an earlier post that the connection was still in
the ESTABLISHED TCP state.  If that is the case I don't know what is
going on.

Kieran

Attachment: httpd.c
Description: Text document


reply via email to

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