Bonobo-Git-Server icon indicating copy to clipboard operation
Bonobo-Git-Server copied to clipboard

git pull hangs

Open lbroekhuizen opened this issue 6 years ago • 2 comments

When there aremany new branches on the server which are not on the client, Git pull hangs during the communication with Bonobo. This happens when the response of upload-pack is larger than 4k. The ouput (and input) buffer of a console app is maximum 4 k. When the output buffer is full git stops processing the input buffer. Thereby the process hangs.

lbroekhuizen avatar Oct 08 '19 13:10 lbroekhuizen

Thanks for this - it it the same issue as #840 would solve?

willdean avatar Oct 11 '19 07:10 willdean

Hi Will,

Yes this solves the same problem. I did not find the other issue while searching for the problem. I thought about using async calls. But the two async solutions I saw were changing the whole to async, which was a bit much. Or looping like #840. But when looping you use the processor for 100%. So quite heavy for the server. Spawning another thread was les work and less pressure on the processor. The read hangs when there is no data.

Regards, Leon

lbroekhuizen avatar Oct 11 '19 08:10 lbroekhuizen