From: Junio C Hamano Date: Fri, 18 Nov 2016 21:05:38 GMT Subject: Re: [PATCH v3] remote-curl: don't hang when a server dies before any output Message-ID: In-Reply-To: <1479501049-15458-1-git-send-email-dturner@twosigma.com> 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 to fetch a dangling > object by SHA. In this case, the server dies before sending any data. > Prior to this patch, fetch-pack would wait for data from the server, > and remote-curl would wait for fetch-pack, causing a deadlock. > ... > Still to do: it would be good to give a better error message > than "fatal: The remote end hung up unexpectedly". > > Signed-off-by: David Turner > Signed-off-by: Junio C Hamano > --- Thanks.