[MERGE] [BUG #165061] Force http.readv() to a maximum number of range requests.

Robert Collins robertc at robertcollins.net
Wed Nov 28 00:00:12 GMT 2007


Robert Collins has voted resubmit.
Status is now: Resubmit
Comment:
I think its better to make many requests that to ask for more data than 
the fudge factor requires.

That is:
http._readv
for group in xrange(len(offsets), max_ranges):
     for result in self._do_readv(offsets[group * max_ranges:(group+1 * 
max_ranges)):
          yield result


For details, see: 
http://bundlebuggy.aaronbentley.com/request/%3C474C1123.1050903%40arbash-meinel.com%3E



More information about the bazaar mailing list