Re: Bug report: Git pull hang occasionally

2017-01-12 Thread Kai Zhang
> On Jan 12, 2017, at 1:12 PM, Junio C Hamano wrote: > > Kai Zhang writes: > >>> On Dec 21, 2016, at 1:32 PM, Junio C Hamano wrote: >>> >>> Junio C Hamano writes: >>> ... >>> >>> I wonder if the latter is solved by recent patch 296b847c0d >>> ("remote-curl: don't hang when a server dies be

Re: Bug report: Git pull hang occasionally

2017-01-12 Thread Junio C Hamano
Kai Zhang writes: >> On Dec 21, 2016, at 1:32 PM, Junio C Hamano wrote: >> >> Junio C Hamano writes: >> ... >> >> I wonder if the latter is solved by recent patch 296b847c0d >> ("remote-curl: don't hang when a server dies before any output", >> 2016-11-18) on the client side. >> ... > After

Re: Bug report: Git pull hang occasionally

2017-01-12 Thread Kai Zhang
Hi Junio, After apply this patch, hanging did not happen again. Would this patch go to release in near future? Thanks. Regards, Kai > On Dec 21, 2016, at 1:32 PM, Junio C Hamano wrote: > > Junio C Hamano writes: > >> And the unexpected discrepancy is reported by find_symref() as >> fatal.

Re: Bug report: Git pull hang occasionally

2016-12-21 Thread Kai Zhang
I will verify it. Thanks. > On Dec 21, 2016, at 1:32 PM, Junio C Hamano wrote: > > Junio C Hamano writes: > >> And the unexpected discrepancy is reported by find_symref() as >> fatal. The server side dies, and somehow that fact is lost between >> the upload-pack process and the client and some

Re: Bug report: Git pull hang occasionally

2016-12-21 Thread Junio C Hamano
Junio C Hamano writes: > And the unexpected discrepancy is reported by find_symref() as > fatal. The server side dies, and somehow that fact is lost between > the upload-pack process and the client and somebody in the middle > (e.g. fastcgi interface or nginx webserver on the server side, or > t

Re: Bug report: Git pull hang occasionally

2016-12-21 Thread Kai Zhang
Thank you for your insight and detailed explanation Junio. I think what you said is what is happening in my environment. Both writing and reading are happening simultaneously. > On Dec 21, 2016, at 12:59 PM, Junio C Hamano wrote: > > Kai Zhang writes: > >> 2016/12/20 20:38:10 [error] 9957#

Re: Bug report: Git pull hang occasionally

2016-12-21 Thread Junio C Hamano
Kai Zhang writes: > 2016/12/20 20:38:10 [error] 9957#0: *687703 FastCGI sent in stderr: "fatal: > 'HEAD' is a symref but it is not?" while reading response header from > upstream, client: 10.1.0.11, server: server, request: "POST > /git/repo_name/.git/git-upload-pack HTTP/1.1", upstream: > "f

Bug report: Git pull hang occasionally

2016-12-21 Thread Kai Zhang
Issue: Git pull hang occasionally, and when git pull start hanging, need manually "kill -9" to stop hanging Environment: Server side: Git version: 2.11.0 OS: ubuntu 12.04 Nginx: 1.9.7.4 fcgiwrap: 1.1.0 Git repo: None bare, small size (less than 5 MB including .git folder), small file number (les