Lines Matching refs:timeout
78 host, user, passwd, acct, timeout, source_address, encoding
81 The parameter ´timeout´ must be numeric and defaults to None if not
82 passed, meaning that no timeout will be set on any ftp socket(s).
83 If a timeout is passed, then this is now the default timeout for all ftp
110 timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None, *,
119 self.timeout = timeout
139 def connect(self, host='', port=0, timeout=-999, source_address=None):
143 - timeout: the timeout to set against the ftp socket(s)
151 if timeout != -999:
152 self.timeout = timeout
153 if self.timeout is not None and not self.timeout:
154 raise ValueError('Non-blocking socket (timeout=0) is not supported')
158 self.sock = socket.create_connection((self.host, self.port), self.timeout,
320 if self.timeout is not _GLOBAL_DEFAULT_TIMEOUT:
321 sock.settimeout(self.timeout)
354 conn = socket.create_connection((host, port), self.timeout,
384 if self.timeout is not _GLOBAL_DEFAULT_TIMEOUT:
385 conn.settimeout(self.timeout)
720 timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None, *,
741 timeout, source_address, encoding=encoding)