MCPcopy
hub / github.com/benoitc/gunicorn / close

Method close

gunicorn/ctl/client.py:65–72  ·  view source on GitHub ↗

Close connection.

(self)

Source from the content-addressed store, hash-verified

63 raise ControlClientError(f"Failed to connect to {self.socket_path}: {e}")
64
65 def close(self):
66 """Close connection."""
67 if self._sock:
68 try:
69 self._sock.close()
70 except Exception:
71 pass
72 self._sock = None
73
74 def send_command(self, command: str, args: list = None) -> dict:
75 """

Callers 14

send_commandMethod · 0.95
__exit__Method · 0.95
run_interactiveFunction · 0.95
test_connect_successMethod · 0.95
test_close_idempotentMethod · 0.95
_shutdownMethod · 0.45
_handle_clientMethod · 0.45

Calls

no outgoing calls