Skip to content

Commit 1e567c0

Browse files
bradh352Copilot
andcommitted
Update core/src/main/java/com/cloud/network/HAProxyConfigurator.java
copilot suggestion Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 810b487 commit 1e567c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/java/com/cloud/network/HAProxyConfigurator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,10 @@ public String[] generateConfiguration(final LoadBalancerConfigCommand lbCmd) {
646646
// is a fixed size. So lets just mark the entry as blank.
647647
dSection.set(9, "");
648648
dSection.set(10, "");
649+
} else {
650+
// Negative idleTimeout values are considered invalid; retain the
651+
// default HAProxy timeout values from defaultsSection for predictability.
652+
logger.warn("Negative idleTimeout ({}) configured; retaining default HAProxy timeouts.", lbCmd.idleTimeout);
649653
}
650654

651655
if (logger.isDebugEnabled()) {

0 commit comments

Comments
 (0)