We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7918d0d commit 57a4276Copy full SHA for 57a4276
aleph_alpha_client/aleph_alpha_client.py
@@ -833,6 +833,7 @@ def __init__(
833
self,
834
token: str,
835
host: str,
836
+ limit: int = 100,
837
hosting: Optional[str] = None,
838
request_timeout_seconds: int = DEFAULT_REQUEST_TIMEOUT,
839
total_retries: int = 8,
@@ -855,7 +856,7 @@ def __init__(
855
856
start_timeout=0.25,
857
statuses=set(RETRY_STATUS_CODES),
858
)
- connector = aiohttp.TCPConnector(verify_ssl=verify_ssl)
859
+ connector = aiohttp.TCPConnector(verify_ssl=verify_ssl, limit=limit)
860
self.session = RetryClient(
861
trust_env=True, # same behaviour as requests/(Sync)Client wrt. http_proxy
862
raise_for_status=False,
0 commit comments