Re: [PATCH v2] remote-curl: don't hang when a server dies before any output

2016-11-18 Thread Junio C Hamano
David Turner writes: > In the event that a HTTP server closes the connection after giving a > 200 but before giving any packets, we don't want to hang forever > waiting for a response that will never come. Instead, we should die > immediately. > > One case where this happens is when attempting t

[PATCH v2] remote-curl: don't hang when a server dies before any output

2016-11-18 Thread David Turner
In the event that a HTTP server closes the connection after giving a 200 but before giving any packets, we don't want to hang forever waiting for a response that will never come. Instead, we should die immediately. One case where this happens is when attempting to fetch a dangling object by SHA.