~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_server.py

  • Committer: Vincent Ladeuil
  • Date: 2011-10-07 14:48:59 UTC
  • mto: (6015.33.11 2.4)
  • mto: This revision was merged to the branch mainline in revision 6206.
  • Revision ID: v.ladeuil+lp@free.fr-20111007144859-oqoe6td0sc2gim43
One race can hide another... the exception may pass from the connection thread to the server thread so both need to be checked, with care.

Show diffs side-by-side

added added

removed removed

Lines of Context:
452
452
        if debug_threads():
453
453
            sys.stderr.write('Client thread %s started\n' % (t.name,))
454
454
        # If an exception occured during the thread start, it will get raised.
 
455
        # In rare cases, an exception raised during the request processing may
 
456
        # also get caught here (see http://pad.lv/869366)
455
457
        t.pending_exception()
456
458
 
457
459
    # The following methods are called by the main thread