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

Method close

gunicorn/dirty/client.py:188–191  ·  view source on GitHub ↗

Close the sync connection.

(self)

Source from the content-addressed store, hash-verified

186 self._sock = None
187
188 def close(self):
189 """Close the sync connection."""
190 with self._lock:
191 self._close_socket()
192
193 # -------------------------------------------------------------------------
194 # Async API (for async HTTP workers)

Callers 8

__exit__Method · 0.95
test_connect_successMethod · 0.95
test_close_idempotentMethod · 0.95
worker_taskMethod · 0.95
_close_socketMethod · 0.45
_close_asyncMethod · 0.45
close_dirty_clientFunction · 0.45

Calls 1

_close_socketMethod · 0.95

Tested by 3

test_connect_successMethod · 0.76
test_close_idempotentMethod · 0.76