[RFC] Multipart support for _urllib_

John Arbash Meinel john at arbash-meinel.com
Tue Jun 20 19:51:41 BST 2006


Robey Pointer wrote:
> 
> On 20 Jun 2006, at 7:34, Aaron Bentley wrote:
> 
>>> My point was to have SFTP do the same thing that HTTP is doing. Pull
>>> over any overlapping, nearby, etc ranges. And then return the requested
>>> hunks in the order requested.
>>
>> I agree.  Seeking is nice, but not needing to seek is nicer.  While
>> read_records already does sort requests before doing a readv, I think
>> it's nicer to do that at the Transport layer.
> 
> Minor quibble: sftp's reads are all the equivalent of 'pread', so seek()
> is a local operation, and has no traffic or roundtrip.
> 
> robey
> 
> 

That's nice to hear. And it makes some things a little bit better. We
still need to sort the requests in order, collapse them, read the
collapsed ranges, and return the rest of the hunks.
Because what we read doesn't match what we return, we still need some
sort of intermediate buffer.

John
=:->



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060620/6a5e09ae/attachment.pgp 


More information about the bazaar mailing list