Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-websockets/websockets
/ shutdown
Method
shutdown
tests/sync/connection.py:105–109 ·
view source on GitHub ↗
(self, how)
Source
from the content-addressed store, hash-verified
103
self.socket.sendall(bytes, flags)
104
105
def
shutdown(self, how):
106
if
self.delay_shutdown is not None:
107
time.sleep(self.delay_shutdown)
108
if
not self.drop_shutdown:
109
self.socket.shutdown(how)
Callers
8
run_proxy
Method · 0.45
test_writing_in_recv_events_fails
Method · 0.45
test_writing_in_send_context_fails
Method · 0.45
close_connection
Method · 0.45
test_junk_handshake
Method · 0.45
run_server_or_router
Function · 0.45
run_unix_server_or_router
Function · 0.45
test_shutdown
Method · 0.45
Calls
no outgoing calls
Tested by
5
test_writing_in_recv_events_fails
Method · 0.36
test_writing_in_send_context_fails
Method · 0.36
close_connection
Method · 0.36
test_junk_handshake
Method · 0.36
test_shutdown
Method · 0.36