Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: Unable to clone via git protocol / early EOF / index-pack failed

From: Holger Freyther <hidden>
Date: 2016-06-15 22:50:54
Subsystem: the rest · Maintainer: Linus Torvalds

Holger Freyther <zecke <at> selfish.org> writes:

It is a bit difficult to track all the processes that get started and what they
should do and to figure out at which point the fd for the tcp socket is really
closed.
If I do the below hack it is working fine. Adding a fflush(NULL).. or a
close(fileno(stdout)).. fsync... sched_yield() is not fixing it though.
diff --git a/upload-pack.c b/upload-pack.c
index 72aa661..4cd12c9 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -695,6 +695,8 @@ static void upload_pack(void)
                get_common_commits();
                create_pack_file();
        }
+
+       sleep(1);
 }
 
 int main(int argc, char **argv)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help