fetch-pack: give up after getting too many "ack continue"
authorJunio C Hamano <junkio@cox.net>
Thu, 25 May 2006 04:48:34 +0000 (21:48 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 25 May 2006 05:30:56 +0000 (22:30 -0700)
commitf061e5fdd6a65216976a8bd547b2340e6297217b
treefac4d3a1626241087c74d06f191bbeab00a9549f
parented90cbf5f681c0144909457be3f4792b47604a5b
fetch-pack: give up after getting too many "ack continue"

If your repository have more roots than the remote repository
you ask an object for, the remote upload-pack keeps responding
"ack continue" until it fills up its received-have buffer
(currently 256 entries).  Usually this is not a problem because
the requester stops traversing the ancestry chain from the commit
it gets "ack continue" for, but this mechanism does not work as
a roadblock when it traverses down the path to the root the
other side does not have.

Signed-off-by: Junio C Hamano <junkio@cox.net>
fetch-pack.c