~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 3111.1.28.

  • Committer: Vincent Ladeuil
  • Date: 2007-12-28 15:28:44 UTC
  • mto: (3146.3.1 179368) (3156.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3158.
  • Revision ID: v.ladeuil+lp@free.fr-20071228152844-r64au9m40wem2tuf
Fix the multi-ranges http server and add tests.

* bzrlib/transport/http/_urllib2_wrappers.py:
(Response.finish): Fix the mutter message.

* bzrlib/tests/test_http.py:
(TestRangeRequestServer.test_complete_readv_leave_pipe_clean,
TestRangeRequestServer.test_incomplete_readv_leave_pipe_clean):
Add tests checking http pipe after readv.
(TestMultipleRangeWithoutContentLengthServer): Keep the buggy
get_multiple_ranges version as a test.

* bzrlib/tests/http_server.py:
(TestingHTTPRequestHandler.get_multiple_ranges): Calculate the
body length and add a Content-Length header.
(HttpServer.tearDown): Stop joining the server thread since it is
garbage collected.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: