• Home
  • Raw
  • Download

Lines Matching refs:timeout

83     def __init__(self, address, port, log_func=None, timeout=20):  argument
95 self._socket.settimeout(timeout)
102 if self._receive_msg(timeout) != RSS_MAGIC:
125 def _send(self, str, timeout=60): argument
127 if timeout <= 0:
128 raise socket.timeout
129 self._socket.settimeout(timeout)
131 except socket.timeout:
138 def _receive(self, size, timeout=60): argument
140 end_time = time.time() + timeout
143 timeout = end_time - time.time()
144 if timeout <= 0:
145 raise socket.timeout
146 self._socket.settimeout(timeout)
155 except socket.timeout:
177 def _send_packet(self, str, timeout=60): argument
179 self._send(str, timeout)
184 def _receive_packet(self, timeout=60): argument
186 str = self._receive(size, timeout)
192 def _send_file_chunks(self, filename, timeout=60): argument
198 end_time = time.time() + timeout
211 def _receive_file_chunks(self, filename, timeout=60): argument
217 end_time = time.time() + timeout
230 def _send_msg(self, msg, timeout=60): argument
234 def _receive_msg(self, timeout=60): argument
235 s = self._receive(4, timeout)
259 def __init__(self, address, port, log_func=None, timeout=20): argument
274 super(FileUploadClient, self).__init__(address, port, log_func, timeout)
291 def upload(self, src_pattern, dst_path, timeout=600): argument
317 end_time = time.time() + timeout
358 def __init__(self, address, port, log_func=None, timeout=20): argument
373 super(FileDownloadClient, self).__init__(address, port, log_func, timeout)
377 def download(self, src_pattern, dst_path, timeout=600): argument
405 end_time = time.time() + timeout
457 def upload(address, port, src_pattern, dst_path, log_func=None, timeout=60, argument
465 client.upload(src_pattern, dst_path, timeout)
469 def download(address, port, src_pattern, dst_path, log_func=None, timeout=60, argument
477 client.download(src_pattern, dst_path, timeout)
513 download(address, port, src_pattern, dst_path, logger, options.timeout)
515 upload(address, port, src_pattern, dst_path, logger, options.timeout)