From f9735385c1947dde8e5631124a981ff5bed32d1a Mon Sep 17 00:00:00 2001 From: Drew Short Date: Thu, 27 May 2021 20:03:30 -0500 Subject: [PATCH] Attempt connection test --- keycloak/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keycloak/connection.py b/keycloak/connection.py index 3bc55f7..da45d23 100644 --- a/keycloak/connection.py +++ b/keycloak/connection.py @@ -49,6 +49,8 @@ class ConnectionManager(object): self._s = requests.Session() self._s.auth = lambda x: x # don't let requests add auth headers + self._s.get(self.base_url) + # # retry once to reset connection with Keycloak after tomcat's ConnectionTimeout # # see https://github.com/marcospereirampj/python-keycloak/issues/36 # for protocol in ('https://', 'http://'):