Skip to content

Commit c5313bc

Browse files
committed
BUG/MEDIUM: ssl-passthrough: Fix default delay value
When no client-timeout is provided inspect delay rule should fallback to a default value. Reported in #414 Regression introduced in 6333c37 Backport to 1.7
1 parent 0b1be5c commit c5313bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

controller/handler/https.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,10 @@ func (h HTTPS) toggleSSLPassthrough(passthrough bool, cfg *config.ControllerCfg,
260260

261261
func (h HTTPS) sslPassthroughRules(k store.K8s, cfg *config.ControllerCfg) error {
262262
inspectTimeout, err := annotations.Timeout("timeout-client", k.ConfigMaps.Main.Annotations)
263-
if err != nil {
264-
logger.Errorf("SSL Passthrough: %s", err)
263+
if inspectTimeout == nil {
264+
if err != nil {
265+
logger.Errorf("SSL Passthrough: %s", err)
266+
}
265267
inspectTimeout = utils.PtrInt64(5000)
266268
}
267269
errors := utils.Errors{}

0 commit comments

Comments
 (0)