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

Method _close

gunicorn/dirty/stash.py:128–135  ·  view source on GitHub ↗

Close the connection.

(self)

Source from the content-addressed store, hash-verified

126 raise StashError(f"Failed to connect to arbiter: {e}") from e
127
128 def _close(self):
129 """Close the connection."""
130 if self._sock is not None:
131 try:
132 self._sock.close()
133 except Exception:
134 pass
135 self._sock = None
136
137 def _execute(self, op, table, key=None, value=None, pattern=None):
138 """

Callers 2

_executeMethod · 0.95
closeMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected