[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Bind fails after previous server-initiated connection c
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Bind fails after previous server-initiated connection close |
Date: |
Fri, 9 Jun 2017 16:32:53 +0200 |
Ignacio García Pérez wrote:
> I'm writing a simple FTP server that needs to be started up and shut down
> with relatively high frequency (say once per minute)
That's a strange application scenario. And the result of this is what you are
seeing.
> Question:
> 1- Is this behaviour expected?
Yes! See Sergio's answer.
> 2- Is there any workaround?
Yes. You are not the first having this problem. There's SO_REUSE (not
lwIP-specific, by the way), but if you use it, you should know what you're
doing!
Simon