~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/smart.py

  • Committer: Robert Collins
  • Date: 2007-03-27 04:57:59 UTC
  • mto: This revision was merged to the branch mainline in revision 2401.
  • Revision ID: robertc@robertcollins.net-20070327045759-hb7j634wpm1ris7l
Add more debugging code to the smart server to debug pqm failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
853
853
        for hook in SmartTCPServer.hooks['server_started']:
854
854
            hook(self.backing_transport.base, self.get_url())
855
855
        try:
856
 
            while not self._should_terminate:
857
 
                try:
858
 
                    self.accept_and_serve()
859
 
                except socket_timeout:
860
 
                    # just check if we're asked to stop
861
 
                    pass
862
 
                except socket_error, e:
863
 
                    trace.warning("client disconnected: %s", e)
864
 
                    pass
 
856
            try:
 
857
                while not self._should_terminate:
 
858
                    try:
 
859
                        self.accept_and_serve()
 
860
                    except socket_timeout:
 
861
                        # just check if we're asked to stop
 
862
                        pass
 
863
                    except socket_error, e:
 
864
                        trace.warning("client disconnected: %s", e)
 
865
                        pass
 
866
            except Exception, e:
 
867
                trace.error("Unhandled smart server error.")
 
868
                trace.log_exception_quietly()
 
869
                raise
865
870
        finally:
866
871
            try:
867
872
                self._server_socket.close()