any more sftp fixes?

Robey Pointer robey at lag.net
Fri Dec 2 02:44:23 GMT 2005


On 1 Dec 2005, at 5:46, John A Meinel wrote:

> Robey Pointer wrote:
>>
>> I'm not sure the weakref system will work, though -- I'd pondered  
>> that
>> before, but in tests with the python CLI, the weak values were going
>> away as soon as the last "real" reference to them died.  If that's  
>> true
>> generally, then the cache has an automatic expiration of zero  
>> seconds,
>> making it a lot less useful. :)
>>
>
> The weakref was mostly a starting point. We had some problems where
> there were 2 paths to create a connection, and they weren't getting  
> shared.
>
> Long term, I wanted bzrlib to keep some sort of reference, so that a
> front end could implement a longer-term caching policy. Such as  
> keeping
> a timeout list so that after a period of inactivity (say 1min/60min
> whatever), they would be closed.
>
> Adding the weakref dictionary just means that bzrlib won't try to hold
> onto them forever, but gives a place for other front-ends to acquire
> them if it decides to create a different policy.

I wonder if this maybe should be implemented at the Transport level,  
instead of per-transport (especially after hearing that FTPTransport  
is doing something similar).  Is there any transport that would be  
hurt by such caching?

Then when we figure out a good way to make the cache have a non-zero  
timeout, all transports will win.

robey

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051201/2f1a493c/attachment.pgp 


More information about the bazaar mailing list