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

Method _close_socket

gunicorn/dirty/client.py:179–186  ·  view source on GitHub ↗

Close the socket connection.

(self)

Source from the content-addressed store, hash-verified

177 raise DirtyError(f"Unknown response type: {msg_type}")
178
179 def _close_socket(self):
180 """Close the socket connection."""
181 if self._sock is not None:
182 try:
183 self._sock.close()
184 except Exception:
185 pass
186 self._sock = None
187
188 def close(self):
189 """Close the sync connection."""

Callers 4

_execute_lockedMethod · 0.95
closeMethod · 0.95
_read_next_chunkMethod · 0.80

Calls 1

closeMethod · 0.45

Tested by 1