sancho21
sancho21

Reputation: 3643

Git Daemon Hang SO_KEEPALIVE

I'm using Git 2.9 on Windows. When creating a demo Git training with git daemon, I hit SO_KEEPALIVE error.

@Server
$ git daemon --base-path=. --enable=receive-pack --verbose
[18608] Ready to rumble
[18108] Connection from 127.0.0.1:61111
[18108] unable to set SO_KEEPALIVE on socket: No error
[18108] Extended attributes (16 bytes) exist <host=127.0.0.1>
[18108] Request receive-pack for '/hello-world.git'

@ACommitter
$ git push -u origin "john--01--create-app-saying-hello"

Why is this happening?

Upvotes: 8

Views: 9970

Answers (2)

user4751294
user4751294

Reputation: 21

In addition to the trick suggested by @Daniel i had to do this:

git config --global pack.windowMemory "100m"
git config --global pack.packSizeLimit "100m"
git config --global pack.threads "1" 

to solve the same problem (got it from here).

Upvotes: 1

Daniel
Daniel

Reputation: 9464

As of Git for windows 1.9.4, the following command should fix your issue:

git config --global sendpack.sideband false

https://stackoverflow.com/a/24461876/1250319

Upvotes: 5

Related Questions