Skip to content

Commit

Permalink
Merge pull request wildfly#18247 from bstansberry/WFLY-19787
Browse files Browse the repository at this point in the history
[WFLY-19787] Harden against intermittent failures by configuring  max…
  • Loading branch information
bstansberry authored Sep 27, 2024
2 parents bce5759 + ce5c254 commit 7f0d702
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void setup(ManagementClient managementClient, String string) throws Excep
.withPort(PORT)
.withHostName(HOSTNAME)
.withTransportProtocol("TCP")
.setMaxReconnectAttempts(5) // a random number to avoid intermittent failures
.setMaxReconnectAttempts(5) // an arbitrary number to avoid intermittent failures
.build();
auditLog.create(cli);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public void setup(ManagementClient managementClient, String string) throws Excep
.withHostName(HOSTNAME)
.withTransportProtocol("SSL_TCP")
.withSslContext(SSL_CONTEXT_NAME)
.setMaxReconnectAttempts(5) // an arbitrary number to avoid intermittent failures.
.build();
auditLog.create(cli);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public void setup(ManagementClient managementClient, String string) throws Excep
.withPort(PORT)
.withHostName(HOSTNAME)
.withTransportProtocol("UDP")
.setMaxReconnectAttempts(5) // an arbitary number to avoid intermittent failures.
// This is pointless with UDP, but I'm adding this to keep all builder use consistent
.build();
auditLog.create(cli);

Expand Down

0 comments on commit 7f0d702

Please sign in to comment.