sftp tests are slow

Robert Collins robertc at robertcollins.net
Sun Jan 15 20:56:53 GMT 2006


On Thu, 2006-01-12 at 19:48 +1100, Martin Pool wrote:
> On 10 Jan 2006, Robey Pointer <robey at lag.net> wrote:
> > >>Yes, this is slow. We chatted on IRC about this - its about 10 times
> > >>slower than starting openssh... I find it hard to believe that  
> > >>this is
> > >>intrinsic to python - I have to regard it as a bug in the stub  
> > >>server.
> > 
> > 10 times is hard to believe -- what did you use to test that?
> 
> As I understand it, SFTP is fairly well layered above SSH: you can run
> it equally well over a plain tcp socket. 
> 
> Why can't we run the SFTP tests over an in-process representation of a
> plain socket?  Doing negotiation, encryption, etc is not going to prove
> anything much useful about whether we're using SFTP in the right way.

Yup, I agree with this.

> I guess some areas, such as authentication, do need to be tested on real
> ssh but the majority probably does not.

In fact, this is more an ssh specific test than a general sftp test -
though we dont have any transport authentication tests AFAIK and it
would be good to have them.

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060116/784da160/attachment.pgp 


More information about the bazaar mailing list