Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git server hosting using git:// protocol, unable to set SO_KEEPALIVE, no such file or directory

Tags:

git

git-daemon

I'm on Windows using git version 2.12.2. I ran the following command within a git bash shell:

$ git daemon --reuseaddr --verbose --informative-errors --base-path=/c/ /c/

On another git bash shell, on the same machine that's serving, I tried pushing to git://<host>/foo.git from a test repo and got:

[2236] unable to set SO_KEEPALIVE on socket: No such file or directory

What can I do so that SO_KEEPALIVE can be successfully set?

like image 477
solstice333 Avatar asked Jun 26 '17 20:06

solstice333


People also ask

How do I fix unauthenticated git protocol on port 9418 is no longer supported?

The unauthenticated git protocol on port 9418 is no longer supported occurs because GitHub has stopped accepting the deprecated key and signature types, ciphers, and MACs, and the unencrypted Git protocol from March 15, 2022. The issue can be resolved by changing the protocol from Git to HTTPS in the . gitconfig .

What is daemon in git?

git-daemon is a simple server for git repositories. The daemon makes git repositories available over the git:// protocol, which is very efficient, but insecure.

What is git protocol?

The Git protocol is often the fastest network transfer protocol available. If you're serving a lot of traffic for a public project or serving a very large project that doesn't require user authentication for read access, it's likely that you'll want to set up a Git daemon to serve your project.


1 Answers

Looking at https://github.com/git-for-windows/git/issues/304 this is a known issue that's not yet solved.

like image 156
Llyle Avatar answered Nov 15 '22 04:11

Llyle