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

daemon: allow more than one host address given via --listen

From
Alexander Sulfrian <alexander@sulfrian.net>
Date
Aug 30, 2010, 11:30 UTC
Message-ID
<1283167851-18331-1-git-send-email-alexander@sulfrian.net>
In-Reply-To
<7vwrr8ftjj.fsf@alter.siamese.dyndns.org>

Hi, here is a new version of the two patches. The sockets are now in a socketlist structure that is compatible with ALLOC_GROW(). Also if no socket could be created for one host/ip, git daemon prints now an error but continues (in both ipv6 and noipv6 builds). Only if no socket could be created at all, it will die.

Also I removed the string_list_clear (it leave back memory leaks form the xstrdup'ed-strings). It would be happen just before the exit of the application and just before the operating system cleans the memory. So I hope, that it is okay to remove it. If not i will change it, to really free all lists before exit.

Thanks Alex

Previous: Junio C HamanoNext: Alexander Sulfrian
Message 9 of 18 in “added possibility to supply more than one --listen argument to git-daemon”
  1. Alexander SulfrianAug 23, 2010
  2. added possibility to supply more than one --listen argument to git-daemonAlexander Sulfrian, Aug 23, 2010
  3. Junio C HamanoAug 23, 2010
  4. daemon: allow more than one host addresses given via --listenAlexander Sulfrian, Aug 29, 2010
  5. daemon: allow more than one host addresses given via --listenAlexander Sulfrian, Aug 29, 2010
  6. 1/2 daemon: add helper function named_sock_setupAlexander Sulfrian, Aug 29, 2010
  7. 2/2 daemon: allow more than one host address given via --listenAlexander Sulfrian, Aug 29, 2010
  8. Junio C HamanoAug 30, 2010
  9. daemon: allow more than one host address given via --listenAlexander Sulfrian, Aug 30, 2010
  10. 1/2 daemon: add helper function named_sock_setupAlexander Sulfrian, Aug 30, 2010
  11. Erik Faye-LundAug 30, 2010
  12. AlexanderSAug 30, 2010
  13. Erik Faye-LundAug 30, 2010
  14. 2/2 daemon: allow more than one host address given via --listenAlexander Sulfrian, Aug 30, 2010
  15. 1/2 daemon: add helper function named_sock_setupAlexander Sulfrian, Aug 29, 2010
  16. 2/2 daemon: allow more than one host address given via --listenAlexander Sulfrian, Aug 29, 2010
  17. Erik Faye-LundAug 29, 2010
  18. AlexanderSAug 29, 2010

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.