From a352bda010a148d563a40a939ded2c5f9e558af9 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 1 Mar 2007 16:02:23 +0100 Subject: [PATCH] Increase the pipe buffer size. It commonly happens that git-fetch-pack and git-upload-pack hit a deadlock in the initial commit id exchange, such that both try to write to the other end, but do not succeed. I have the suspicion that the reason is that both ends fill the pipe, but don't read. Increasing the pipe buffer helps, but is this the real cure? --- compat/mingw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/mingw.c b/compat/mingw.c index dbc13f0c8a..9222626d28 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -106,7 +106,7 @@ int pipe(int filedes[2]) int fd; HANDLE h[2], parent; - if (_pipe(filedes, 4096, 0) < 0) + if (_pipe(filedes, 8192, 0) < 0) return -1; parent = GetCurrentProcess();