Browse Source

Attempt connection test

update-dependencies
Drew Short 4 years ago
parent
commit
f9735385c1
  1. 2
      keycloak/connection.py

2
keycloak/connection.py

@ -49,6 +49,8 @@ class ConnectionManager(object):
self._s = requests.Session() self._s = requests.Session()
self._s.auth = lambda x: x # don't let requests add auth headers 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 # # retry once to reset connection with Keycloak after tomcat's ConnectionTimeout
# # see https://github.com/marcospereirampj/python-keycloak/issues/36 # # see https://github.com/marcospereirampj/python-keycloak/issues/36
# for protocol in ('https://', 'http://'): # for protocol in ('https://', 'http://'):

Loading…
Cancel
Save