Re: [PATCH 2/3] daemon: Set SO_REUSEADDR on listening sockets.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 3, 2006, 20:57 UTC
- Message-ID
- <7vmzh8cg9o.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060203202704.1895.18383.stgit@metalzone.distorted.org.uk>
Mark Wooding <mdw@distorted.org.uk> writes:
Show 6 quoted lines
> From: Mark Wooding <mdw@distorted.org.uk> > > Without this, you can silently lose the ability to receive IPv4 > connections if you stop and restart the daemon. > > Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
I've always wanted to ask HPA and Linus about this why we did not do SO_REUSEADDR. I've seen some non-git servers also not using it, giving me an excuse to take a coffee break during work ;-). Is it because they predate REUSEADDR, or is there a valid reason to avoid using REUSEADDR under certain conditions?