/brz/remove-bazaar

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

« back to all changes in this revision

Viewing changes to bzrlib/tests/http_server.py

  • Committer: Vincent Ladeuil
  • Date: 2010-05-31 12:51:10 UTC
  • mto: (5247.4.1 sftp-leaks)
  • mto: This revision was merged to the branch mainline in revision 5396.
  • Revision ID: v.ladeuil+lp@free.fr-20100531125110-gu1ip32jmf59s198
Threaded http server should use ThreadWithException for the client threads too.

* bzrlib/tests/http_server.py:
(TestingThreadingHTTPServer.process_request): Use ThreadWithException.

Show diffs side-by-side

added added

removed removed

Lines of Context:
532
532
        """Start a new thread to process the request."""
533
533
        client = self.clients.pop()
534
534
        started = threading.Event()
535
 
        t = threading.Thread(target = self.process_request_thread,
536
 
                             args = (started, request, client_address))
 
535
        t = test_server.ThreadWithException(
 
536
            event=started,
 
537
            target = self.process_request_thread,
 
538
            args = (started, request, client_address))
537
539
        t.name = '%s -> %s' % (client_address, self.server_address)
 
540
        if 'threads' in tests.selftest_debug_flags:
 
541
            print 'Thread for: %s started' % (threading.currentThread().name,)
538
542
        client.append(t)
539
543
        self.clients.append(client)
540
544
        if self.daemon_threads: