diff --git a/opbeat_python_urllib3/__init__.py b/opbeat_python_urllib3/__init__.py index 85babcb..34b6aff 100644 --- a/opbeat_python_urllib3/__init__.py +++ b/opbeat_python_urllib3/__init__.py @@ -61,6 +61,12 @@ def send(self, data, headers, timeout=None): class AsyncUrllib3Transport(AsyncHTTPTransport, Urllib3Transport): scheme = ['http', 'https'] async_mode = True + http = urllib3.PoolManager( + cert_reqs='CERT_REQUIRED' if ca_certs else 'CERT_NONE', + ca_certs=ca_certs, + maxsize=2, + block=True, + ) def send_sync(self, data=None, headers=None, success_callback=None, fail_callback=None):