deepl-python icon indicating copy to clipboard operation
deepl-python copied to clipboard

Be able to configure the underlying connection pool size

Open gael-ft opened this issue 1 year ago • 0 comments

Hello,

Would be nice to be able to configure the underlying size of the connection pool. DeepL is using requests as:

self._session = requests.Session()

which uses the default HTTPAdater, so 10 connections for http:// & https://.

When we have a peak, underlying client logs things like Connection pool is full, discarding connection which is not an error as is, but would be better if we could adapt the pool according to our traffic.

gael-ft avatar Nov 13 '24 12:11 gael-ft