git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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?

Previous: Mark WoodingNext: Junio C Hamano
Message 4 of 13 in “git-daemon hacking”
  1. 0/3 git-daemon hackingMark Wooding, Feb 3, 2006
  2. 1/3 daemon: Provide missing argument for logerror() call.Mark Wooding, Feb 3, 2006
  3. 2/3 daemon: Set SO_REUSEADDR on listening sockets.Mark Wooding, Feb 3, 2006
  4. Junio C HamanoFeb 3, 2006
  5. Junio C HamanoFeb 4, 2006
  6. Mark WoodingFeb 4, 2006
  7. 3/3 daemon: Support a --user-path option.Mark Wooding, Feb 3, 2006
  8. Junio C HamanoFeb 3, 2006
  9. Junio C HamanoFeb 4, 2006
  10. Mark WoodingFeb 4, 2006
  11. Junio C HamanoFeb 4, 2006
  12. Mark WoodingFeb 4, 2006
  13. Junio C HamanoFeb 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.