lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] 答复: how to release allocate d TCB


From: vincent cui
Subject: Re: [lwip-users] 答复: how to release allocate d TCB
Date: Sat, 21 Jul 2012 07:44:23 +0000

Simon:

You are correct, after waiting 2Min and create it again , it works now .
But it maybe client socket is active too when user connect to TELNET 
application, we must close listen socket and client socket together in this 
case 


Vincent 

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Simon Goldschmidt
Sent: 2012年7月21日 6:27
To: Mailing list for lwIP users
Subject: Re: [lwip-users] 答复: how to release allocated TCB

 Kieran Mansley <address@hidden> wrote:

> 
> On 20 Jul 2012, at 15:35, vincent cui wrote:
> 
>> Hi:
>> 
>> I use socket api to do that.
> 
> Is it possible that the old socket is just in the TCP TIME_WAIT state, and 
> will be cleared up after a short while?  If you're calling close() on your 
> sockets, that is all you should need to do.


That sounds like a good explanation: from the original post, I think he closed 
the listening socket and reopened it and called listen() again. I think that 
really doesn't work as long as there are old connections in time-wait, so 
trying to create the listening socket again after 2 minutes should probably 
succeed...

Simon

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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