openlifu.cloud.api.request.SlicerAdapter¶
- class openlifu.cloud.api.request.SlicerAdapter(pool_connections: int = 10, pool_maxsize: int = 10, max_retries: int | Retry = 0, pool_block: bool = False)[source]¶
Bases:
HTTPAdapterCustom Adapter to handle GKE Load Balancer abrupt connection closures which trigger SSLEOFError in Python 3.12.
- init_poolmanager(*args, **kwargs)[source]¶
Initializes a urllib3 PoolManager.
This method should not be called from user code, and is only exposed for use when subclassing the
HTTPAdapter.- Parameters:
connections – The number of urllib3 connection pools to cache.
maxsize – The maximum number of connections to save in the pool.
block – Block when no free connections are available.
pool_kwargs – Extra keyword arguments used to initialize the Pool Manager.