Skip to content

Commit

Permalink
Merge pull request #34024 from sberyozkin/oidc_recorder_indefinite_wait
Browse files Browse the repository at this point in the history
Avoid indefinite Uni wait in OIDC recorders
  • Loading branch information
sberyozkin authored Jun 13, 2023
2 parents 5c2df51 + 6180545 commit 65aad80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public OidcClients get() {

protected static OidcClient createOidcClient(OidcClientConfig oidcConfig, String oidcClientId,
TlsConfig tlsConfig, Supplier<Vertx> vertx) {
return createOidcClientUni(oidcConfig, oidcClientId, tlsConfig, vertx).await().indefinitely();
return createOidcClientUni(oidcConfig, oidcClientId, tlsConfig, vertx).await().atMost(oidcConfig.connectionTimeout);
}

protected static Uni<OidcClient> createOidcClientUni(OidcClientConfig oidcConfig, String oidcClientId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public TenantConfigContext apply(Throwable t) {
throw new OIDCException(t);
}
})
.await().indefinitely();
.await().atMost(oidcConfig.getConnectionTimeout());
}

private static Throwable logTenantConfigContextFailure(Throwable t, String tenantId) {
Expand Down

0 comments on commit 65aad80

Please sign in to comment.