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@hiddenhttp://lists.nongnu.org/mailman/listinfo/lwip-users