Skip to content

Commit d30e056

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

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
@@ -643,6 +643,10 @@ public String[] generateConfiguration(final LoadBalancerConfigCommand lbCmd) {
643643
// is a fixed size. So lets just mark the entry as blank.
644644
dSection.set(9, "");
645645
dSection.set(10, "");
646+
} else {
647+
// Negative idleTimeout values are considered invalid; retain the
648+
// default HAProxy timeout values from defaultsSection for predictability.
649+
logger.warn("Negative idleTimeout ({}) configured; retaining default HAProxy timeouts.", lbCmd.idleTimeout);
646650
}
647651

648652
if (logger.isDebugEnabled()) {

0 commit comments

Comments
 (0)