Lines Matching refs:timeout
1 """Unit tests for socket timeout feature."""
17 We must perform name resolution before timeout tests, otherwise it will be
37 "timeout not disabled by default")
118 def _sock_operation(self, count, timeout, method, *args):
123 within `timeout` + self.fuzz seconds.
125 self.sock.settimeout(timeout)
137 self.assertLess(delta, timeout + self.fuzz)
138 self.assertGreater(delta, timeout - 1.0)
142 """TCP test case for socket.socket() timeout functions"""
153 # Testing connect timeout is tricky: we need to have IP connectivity
162 # what we need to confidently test connect timeout.
177 # the whitehole, we proceed with testing connect timeout against the
200 timeout = support.LOOPBACK_TIMEOUT
201 sock.settimeout(timeout)
217 "timeout against the corresponding {}:{} (which is "
222 timeout,
234 # Test recv() timeout
240 # Test accept() timeout
246 # Test send() timeout
255 # Test sendto() timeout
265 # Test sendall() timeout
275 """UDP test case for socket.socket() timeout functions"""
284 # Test recvfrom() timeout