[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Reconnect Issue on TCP
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Reconnect Issue on TCP |
Date: |
Thu, 16 Sep 2010 18:25:59 +0200 |
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