Exemple #1
0
 def _write_out(self, bytes):
     tstart = osutils.timer_func()
     osutils.send_all(self.socket, bytes, self._report_activity)
     if 'hpss' in debug.debug_flags:
         thread_id = thread.get_ident()
         trace.mutter('%12s: [%s] %d bytes to the socket in %.3fs' %
                      ('wrote', thread_id, len(bytes),
                       osutils.timer_func() - tstart))
Exemple #2
0
 def _write_out(self, bytes):
     tstart = osutils.timer_func()
     osutils.send_all(self.socket, bytes, self._report_activity)
     if 'hpss' in debug.debug_flags:
         thread_id = thread.get_ident()
         trace.mutter('%12s: [%s] %d bytes to the socket in %.3fs'
                      % ('wrote', thread_id, len(bytes),
                         osutils.timer_func() - tstart))
Exemple #3
0
 def _accept_bytes(self, bytes):
     """See SmartClientMedium.accept_bytes."""
     self._ensure_connection()
     osutils.send_all(self._socket, bytes, self._report_activity)
Exemple #4
0
 def _accept_bytes(self, bytes):
     """See SmartClientMedium.accept_bytes."""
     self._ensure_connection()
     osutils.send_all(self._socket, bytes, self._report_activity)