clone hang prevention / timeout?
- From
- Jason Vas Dias <jason.vas.dias@gmail.com>
- Date
- Apr 11, 2016, 21:49 UTC
- Message-ID
- <CALyZvKwxE4T8-FmEYgPMgAFKLmeAY5f-y-mDL8S9twTb0umRaA@mail.gmail.com>
It appears GIT has no way of specifying a timeout for a clone operation - if the server decides not to complete a get request, the clone can hang forever - is this correct ? This appears to be what I am seeing, in a script that is attempting to do many successive clone operations, eg. of git://anongit.freedesktop.org/xorg/* , the script occasionally hangs in a clone - I can see with netstat + strace that the TCP connection is open and GIT is trying to read . Is there any option I can specify to get the clone to timeout, or do I manually have to strace the git process and send it a signal after a hang is detected?