Skip to content

Commit 0963c7e

Browse files
author
OpenShift Bot
authored
Merge pull request #13051 from JacobTanenbaum/keepalive
Merged by openshift-bot
2 parents 192e57e + 7bfc0b9 commit 0963c7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

images/router/haproxy/conf/haproxy-config.template

+5
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ defaults
6868
{{ else }}
6969
timeout http-request 10s
7070
{{ end }}
71+
{{ if (matchPattern "[1-9][0-9]*(us|ms|s|m|h|d)?" (env "ROUTER_SLOWLORIS_HTTP_KEEPALIVE" "")) }}
72+
timeout http-keep-alive {{env "ROUTER_SLOWLORIS_HTTP_KEEPALIVE" "" }}
73+
{{ else }}
74+
timeout http-keep-alive 300s
75+
{{ end }}
7176

7277
# Long timeout for WebSocket connections.
7378
{{ if (matchPattern "[1-9][0-9]*(us|ms|s|m|h|d)?" (env "ROUTER_DEFAULT_TUNNEL_TIMEOUT" "")) }}

0 commit comments

Comments
 (0)