Skip to content

Commit

Permalink
Fix connection timeout for OpenIdConnectAuthenticator get Userinfo (#…
Browse files Browse the repository at this point in the history
…112230)

* Fix connection timeout for OpenIdConnectAuthenticator get Userinfo

* Update docs/changelog/112230.yaml
  • Loading branch information
jfreden authored Aug 27, 2024
1 parent f150e2c commit b7e1d55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changelog/112230.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 112230
summary: Fix connection timeout for `OpenIdConnectAuthenticator` get Userinfo
area: Security
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ private CloseableHttpAsyncClient createHttpClient() {
connectionManager.setMaxTotal(realmConfig.getSetting(HTTP_MAX_CONNECTIONS));
final RequestConfig requestConfig = RequestConfig.custom()
.setConnectTimeout(Math.toIntExact(realmConfig.getSetting(HTTP_CONNECT_TIMEOUT).getMillis()))
.setConnectionRequestTimeout(Math.toIntExact(realmConfig.getSetting(HTTP_CONNECTION_READ_TIMEOUT).getSeconds()))
.setConnectionRequestTimeout(Math.toIntExact(realmConfig.getSetting(HTTP_CONNECTION_READ_TIMEOUT).getMillis()))
.setSocketTimeout(Math.toIntExact(realmConfig.getSetting(HTTP_SOCKET_TIMEOUT).getMillis()))
.build();

Expand Down

0 comments on commit b7e1d55

Please sign in to comment.