chiark / gitweb /
git-cache-proxy: Abandon fetch attempt if client disconnects
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 11 Feb 2020 18:32:38 +0000 (18:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 11 Feb 2020 18:57:35 +0000 (18:57 +0000)
commitc90b7cd9b44d02cf8c94ca92bb98266915896841
tree2f98911fc18517e7d2138f6e650cfe6b55049c26
parentd3b21a5bf9241594626cf766bdab00fd107edafc
git-cache-proxy: Abandon fetch attempt if client disconnects

The git client sends the command and then waits for our response.  We
can tell if it has disconnected, because our stdin (the socket) will
be readable.

This is a good idea because otherwise if we have clients with their
own (formal or informal) timeouts, we can build up a backlog of
queued useless fetch attempts.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
scripts/git-cache-proxy