~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/HttpServer.py

  • Committer: Vincent Ladeuil
  • Date: 2007-11-30 17:48:41 UTC
  • mfrom: (3052.3.4 172701)
  • mto: This revision was merged to the branch mainline in revision 3060.
  • Revision ID: v.ladeuil+lp@free.fr-20071130174841-6yitg1imn504sttr
Fix bug #172701 by catching the pycurl ShortReadvError and allowing readv to issue several get requests

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
 
150
150
        Handles the Range header.
151
151
        """
 
152
        # Update statistics
 
153
        self.server.test_case_server.GET_request_nb += 1
152
154
 
153
155
        path = self.translate_path(self.path)
154
156
        ranges_header_value = self.headers.get('Range')
304
306
        self.host = 'localhost'
305
307
        self.port = 0
306
308
        self._httpd = None
 
309
        # Allows tests to verify number of GET requests issued
 
310
        self.GET_request_nb = 0
307
311
 
308
312
    def _get_httpd(self):
309
313
        if self._httpd is None: