/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

  • Committer: Vincent Ladeuil
  • Date: 2008-01-02 14:13:55 UTC
  • mto: (3159.1.1 trunk)
  • Revision ID: v.ladeuil+lp@free.fr-20080102141355-k20yfjo6i1dasuny
Fix #179368 by keeping the current range hint on ShortReadvErrors.

* response.py:
(RangeFile._checked_read): Avoid huge buffering when huge seeks
are required.

* _urllib2_wrappers.py:
(Response.finish): Check for end-of-file or we'll loop if the
server lied about Content-Length.

* __init__.py:
(HttpTransportBase._readv): When a ShortReadvError occurs, try
again, staying in multiple range mode and degrades only if the
error occurs again for the same offset.

* test_http_response.py:
(TestRangeFileMultipleRanges): Add a test to exercise the buffer
overflow protection code.

* test_http.py:
(TestMultipleRangeWithoutContentLengthServer): Emulate lighttpd
behavior regarding bug #179368.
Filename Latest Rev Last Changed Committer Comment Size
..
__init__.py 2353.4.3 18 years ago John Arbash Meinel Implement a 'ReadLock.temporary_write_lock()' to u 2.3 KB Diff Download File
test_lock.py 2872.5.1 18 years ago Martin Pool Avoid internal error tracebacks on failure to lock 6 KB Diff Download File
test_temporary_write_lock.py 2363.3.3 18 years ago John Arbash Meinel make Write locks not block on Read locks, so that 4.9 KB Diff Download File