/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/test_server.py

  • Committer: John Arbash Meinel
  • Date: 2011-10-10 13:59:22 UTC
  • mfrom: (6015.33.11 2.4)
  • mto: This revision was merged to the branch mainline in revision 6206.
  • Revision ID: john@arbash-meinel.com-20111010135922-wanbhsy9i42zm6w9
Merge bzr-2.4 into bzr.dev, resolve the small conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
289
289
 
290
290
    def serve(self):
291
291
        self.serving = True
292
 
        self.stopped.clear()
293
292
        # We are listening and ready to accept connections
294
293
        self.started.set()
295
294
        try:
464
463
        if debug_threads():
465
464
            sys.stderr.write('Client thread %s started\n' % (t.name,))
466
465
        # If an exception occured during the thread start, it will get raised.
 
466
        # In rare cases, an exception raised during the request processing may
 
467
        # also get caught here (see http://pad.lv/869366)
467
468
        t.pending_exception()
468
469
 
469
470
    # The following methods are called by the main thread
519
520
            sync_event=self.server.started,
520
521
            target=self.run_server)
521
522
        self._server_thread.start()
522
 
        # Wait for the server thread to start (i.e release the lock)
 
523
        # Wait for the server thread to start (i.e. release the lock)
523
524
        self.server.started.wait()
524
525
        # Get the real address, especially the port
525
526
        self.host, self.port = self.server.server_address