It has been reported  that cloning from a Git-for-Windows daemon would
sometimes fail with an early EOF error:
$ git clone git://server/test
Cloning into 'test'...
remote: Counting objects: 36, done.
remote: Compressing objects: 100% (24/24), done.
fatal: read error: Invalid argument
fatal: early EOF
fatal: index-pack failed
These patches solve the issue by only changing git-daemon, its child processes
can remain unaware that stdin/stdout are actually network connections.
Kim Gybels (2):
daemon: use timeout for uninterruptible poll
daemon: graceful shutdown of client connection
daemon.c | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)