MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / _get_open_connections

Function _get_open_connections

tests/test_client.py:53–58  ·  view source on GitHub ↗
(client: Opencode | AsyncOpencode)

Source from the content-addressed store, hash-verified

51
52
53def _get_open_connections(client: Opencode | AsyncOpencode) -> int:
54 transport = client._client._transport
55 assert isinstance(transport, httpx.HTTPTransport) or isinstance(transport, httpx.AsyncHTTPTransport)
56
57 pool = transport._pool
58 return len(pool._requests)
59
60
61class TestOpencode:

Calls

no outgoing calls

Tested by

no test coverage detected