Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ settimeout
Method
settimeout
Lib/test/mock_socket.py:59–63 ·
view source on GitHub ↗
(self, timeout)
Source
from the content-addressed store, hash-verified
57
return
0
58
59
def
settimeout(self, timeout):
60
if
timeout is None:
61
self.timeout = _defaulttimeout
62
else
:
63
self.timeout = timeout
64
65
def
gettimeout(self):
66
return
self.timeout
Callers
15
create_connection
Function · 0.95
_get_response
Method · 0.45
_create
Method · 0.45
do_handshake
Method · 0.45
dup
Method · 0.45
create_connection
Function · 0.45
makeport
Method · 0.45
ntransfercmd
Method · 0.45
connect
Method · 0.45
listener
Method · 0.45
setup
Method · 0.45
makeSocket
Method · 0.45
Calls
no outgoing calls
Tested by
15
_create_server_socket
Function · 0.36
_wait_for_signal
Function · 0.36
_wait_for_n_signals
Function · 0.36
_run_remote_exec_test
Method · 0.36
test_timeout
Method · 0.36
test_timeout_connect_ex
Method · 0.36
run
Method · 0.36
test_handshake_timeout
Method · 0.36
test_thread_recv_while_main_thread_sends
Method · 0.36
start
Method · 0.36
do_integration_test
Method · 0.36
run_server
Method · 0.36