Home
last modified time | relevance | path

Searched refs:settimeout (Results 1 – 25 of 79) sorted by relevance

1234

/external/python/cpython2/Lib/test/
Dtest_timeout.py29 self.sock.settimeout(7.345)
32 self.sock.settimeout(3)
35 self.sock.settimeout(None)
40 self.sock.settimeout(1)
43 self.sock.settimeout(3.9)
48 self.sock.settimeout(0)
49 self.sock.settimeout(0L)
50 self.sock.settimeout(0.0)
51 self.sock.settimeout(None)
52 self.assertRaises(TypeError, self.sock.settimeout, "")
[all …]
Dtest_nntplib.py39 self.sock.settimeout(3)
Dtest_smtplib.py50 self.sock.settimeout(15)
276 self.sock.settimeout(15)
306 self.sock.settimeout(15)
Dtest_telnetlib.py48 self.sock.settimeout(60) # Safety net. Look issue 11812
107 self.sock.settimeout(10)
396 self.sock.settimeout(10)
Dtest_socket.py617 sock.settimeout(1)
726 c.settimeout(1.5)
1008 self.cli.settimeout(10)
1505 self.serv.settimeout(1.0)
1513 self.serv.settimeout(0.0)
1530 self.serv.settimeout(5.0) # must be longer than alarm
1562 self.serv.settimeout(1.0)
1570 self.serv.settimeout(0.0)
/external/python/cpython3/Lib/test/
Dtest_timeout.py43 self.sock.settimeout(7.345)
46 self.sock.settimeout(3)
49 self.sock.settimeout(None)
54 self.sock.settimeout(1)
57 self.sock.settimeout(3.9)
62 self.sock.settimeout(0)
63 self.sock.settimeout(0)
64 self.sock.settimeout(0.0)
65 self.sock.settimeout(None)
66 self.assertRaises(TypeError, self.sock.settimeout, "")
[all …]
Dmock_socket.py59 def settimeout(self, timeout): member in MockSocket
123 ms.settimeout(timeout)
Dtest_socket.py1283 sock.settimeout(1)
1476 c.settimeout(1.5)
1678 s.settimeout(1)
1680 s.settimeout(0)
2479 self.serv_sock.settimeout(self.fail_timeout)
2619 self.cli_sock.settimeout(0.03)
2765 self.serv_sock.settimeout(0.03)
2817 self.serv_sock.settimeout(self.fail_timeout)
4027 self.serv.settimeout(self.timeout)
4083 self.serv_conn.settimeout(self.timeout)
[all …]
/external/autotest/client/common_lib/
Dbarrier.py202 client.settimeout(5)
226 client.settimeout(5)
232 client.settimeout(5)
262 client.settimeout(5)
303 client.settimeout(5)
332 client.settimeout(5)
364 server.socket.settimeout(self._remaining())
400 remote.settimeout(30)
449 remote.settimeout(self._remaining())
468 remote.settimeout(self._remaining())
/external/autotest/client/site_tests/platform_TLSDateActual/
Dplatform_TLSDateActual.py78 self.src.settimeout(RESENDTIMEOUT)
79 self.dest.settimeout(RESENDTIMEOUT)
116 sock.settimeout(SOCKTIMEOUT)
/external/python/cpython3/Lib/test/test_asyncio/
Dfunctional.py69 sock.settimeout(timeout)
91 sock.settimeout(timeout)
265 conn.settimeout(self._timeout)
Dtest_server.py28 sock.settimeout(2)
78 sock.settimeout(2)
Dtest_sslproto.py220 sock.settimeout(self.TIMEOUT)
281 sock.settimeout(self.TIMEOUT)
371 sock.settimeout(self.TIMEOUT)
438 sock.settimeout(self.TIMEOUT)
Dutils.py145 request.settimeout(self.request_timeout)
220 request.settimeout(self.request_timeout)
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtcp_client.py48 sock.settimeout(1);
Dtcp_server.py75 sock.settimeout(1);
/external/autotest/client/bin/net/
Dnet_utils_unittest.py90 s.settimeout.expect_call(net_utils.TIMEOUT)
890 s.settimeout.expect_call(net_utils.TIMEOUT)
1026 s.settimeout.expect_call(1)
1048 s.settimeout.expect_call(1)
1076 s.settimeout.expect_call(1)
1114 s.settimeout.expect_call(1)
1177 s.settimeout.expect_call(1)
1210 s.settimeout.expect_call(1)
1265 s.settimeout.expect_call(1)
Dnet_utils.py125 self._socket.settimeout(TIMEOUT)
385 self._socket.settimeout(TIMEOUT)
517 self._socket.settimeout(1) # always running with 1 second timeout
Dnet_utils_mock.py62 def settimeout(self, timeout): member in socket_stub
/external/autotest/client/site_tests/platform_PrinterPpds/
Dfake_printer.py164 self._socket.settimeout(0.5)
/external/autotest/server/site_tests/network_FirewallHolePunchServer/
Dnetwork_FirewallHolePunchServer.py29 clientsocket.settimeout(5)
/external/autotest/client/cros/netprotos/
Dinterface_host.py127 self._recv_sock.settimeout(self.TIMEOUT_VALUE_SECONDS)
/external/autotest/client/cros/cellular/
Dether_io_rf_switch.py35 self.socket.settimeout(3) # In seconds
Dprologix_scpi_driver.py200 s.settimeout(connect_timeout_seconds)
/external/python/cpython2/Doc/library/
Dsocket.rst97 :meth:`~socket.settimeout`.
140 timeouts enabled via a prior call to :meth:`settimeout`. The accompanying value
764 can proceed. ``s.setblocking(0)`` is equivalent to ``s.settimeout(0.0)``;
765 ``s.setblocking(1)`` is equivalent to ``s.settimeout(None)``.
768 .. method:: socket.settimeout(value)
775 ``s.settimeout(0.0)`` is equivalent to ``s.setblocking(0)``;
776 ``s.settimeout(None)`` is equivalent to ``s.setblocking(1)``.
785 :meth:`setblocking` or :meth:`settimeout`.
797 method is simply a shorthand for certain :meth:`~socket.settimeout` calls.
807 setting, and in general it is recommended to call :meth:`~socket.settimeout`

1234