Controlling connection lifetimes when using bzrlib?

Andrew Bennetts andrew at canonical.com
Thu Feb 9 06:15:27 GMT 2006


While chasing my gc.garbage problem now fixed by Robey, I wrote:

> The garbage occurs during my tests' tearDown.  Specifically, after I stop the
> SFTP server process.  This SFTP server is Twisted Conch-based.
> 
> At the time tear down happens, there's a live Branch object from the test
> hanging around (the result of a
> bzrlib.branch.Branch.open('sftp://localhost...')), which is of course still
> connected.

One of the contributing factors to the problem was that having created that
Branch object connected to a remote branch, I then had no way explicitly say
"I'm done now, please disconnect."  Or if there is, I can't find it...

It seems a little odd that I can't close a branch, even though I can open one.

-Andrew.





More information about the bazaar mailing list