]> git.michaelhowe.org Git - packages/b/bup.git/commit
bup.client: fix freeze when suggest-index after finishing a full pack.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 14 Mar 2010 07:50:05 +0000 (03:50 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 14 Mar 2010 09:05:25 +0000 (05:05 -0400)
commitea696d56c03c943bb70b3a35cdfd6be07ecd4618
treed1c565fc1409f53b1ff200fde1d81d1dbb6fdf14
parentd2d2b6a074d087d48336f153101249900c008e01
bup.client: fix freeze when suggest-index after finishing a full pack.

It was just rare enough to be hard to find: if you write an entire pack full
of stuff (1GB or more) and *then* trigger a suggest-index, the client would
freeze because it would send a send-index command without actually
suspending the receive-pack first.

The whole Client/PackWriter separation is pretty gross, so it's not terribly
surprising this would happen.

Add a unit test to detect this case if it ever happens in the future, for
what it's worth.
lib/bup/client.py
t/tclient.py [new file with mode: 0644]