From dc55718bc3d505599ba0438112126382d7a273e7 Mon Sep 17 00:00:00 2001 From: Nikolay Vasilchuk Date: Tue, 16 Oct 2018 11:22:57 +0300 Subject: [PATCH] Fix: Connection pool of Request object is smaller than optimal value (8) (#17483) --- homeassistant/components/telegram_bot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/telegram_bot/__init__.py b/homeassistant/components/telegram_bot/__init__.py index 40724a1ee86..29781f5052c 100644 --- a/homeassistant/components/telegram_bot/__init__.py +++ b/homeassistant/components/telegram_bot/__init__.py @@ -309,10 +309,10 @@ def initialize_bot(p_config): proxy_params = p_config.get(CONF_PROXY_PARAMS) if proxy_url is not None: - request = Request(con_pool_size=4, proxy_url=proxy_url, + request = Request(con_pool_size=8, proxy_url=proxy_url, urllib3_proxy_kwargs=proxy_params) else: - request = Request(con_pool_size=4) + request = Request(con_pool_size=8) return Bot(token=api_key, request=request)