MCPcopy Create free account
hub / github.com/microsoft/debugpy / close_socket

Function close_socket

src/debugpy/common/sockets.py:132–138  ·  view source on GitHub ↗

Shutdown and close the socket.

(sock)

Source from the content-addressed store, hash-verified

130
131
132def close_socket(sock):
133 """Shutdown and close the socket."""
134 try:
135 shut_down(sock)
136 except Exception: # pragma: no cover
137 pass
138 sock.close()
139
140
141def serve(name, handler, host, port=0, backlog=socket.SOMAXCONN, timeout=None):

Callers

nothing calls this directly

Calls 2

shut_downFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…