lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Reconnect Issue on TCP


From: farid mahini
Subject: Re: [lwip-users] Reconnect Issue on TCP
Date: Thu, 16 Sep 2010 13:09:00 -0700 (PDT)

Thank you Kieran and Simon for great pointers :)  The TcpServer now works great.
 
-FM


From: Simon Goldschmidt <address@hidden>
To: Mailing list for lwIP users <address@hidden>
Sent: Thu, September 16, 2010 12:25:59 PM
Subject: Re: [lwip-users] Reconnect Issue on TCP



Am 16.09.2010 um 16:34 schrieb Kieran Mansley <address@hidden>:

> On Thu, 2010-09-16 at 07:08 -0700, farid mahini wrote:
>> repeat the above process again to re-listen. However the bind call
>> fails.
>
> I would guess that the address is still in use.
That's exactly the problem: the bind call fails while there are TCP connections left in TI
ME_WAIT state, typically 3 minutes after the call to close. You can try to use SO_REUSEADDR, but just leaving the listening socket open is probably the best you can do.

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


reply via email to

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