Skip to content

Commit

Permalink
Merge pull request #14220 from knobunc/feature/add-fin-timeouts
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored May 24, 2017
2 parents 67275e1 + 3939a73 commit 61b1f2a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions images/router/haproxy/conf/haproxy-config.template
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,21 @@ defaults
{{- else }}
timeout client 30s
{{- end }}
{{- if (matchPattern "[1-9][0-9]*(us|ms|s|m|h|d)?" (env "ROUTER_CLIENT_FIN_TIMEOUT" "")) }}
timeout client-fin {{env "ROUTER_CLIENT_FIN_TIMEOUT" "1s"}}
{{- else }}
timeout client-fin 1s
{{- end }}
{{- if (matchPattern "[1-9][0-9]*(us|ms|s|m|h|d)?" (env "ROUTER_DEFAULT_SERVER_TIMEOUT" "")) }}
timeout server {{env "ROUTER_DEFAULT_SERVER_TIMEOUT" "30s"}}
{{- else }}
timeout server 30s
{{- end }}
{{- if (matchPattern "[1-9][0-9]*(us|ms|s|m|h|d)?" (env "ROUTER_DEFAULT_SERVER_FIN_TIMEOUT" "")) }}
timeout server-fin {{env "ROUTER_DEFAULT_SERVER_FIN_TIMEOUT" "1s"}}
{{- else }}
timeout server-fin 1s
{{- end }}
{{- if (matchPattern "[1-9][0-9]*(us|ms|s|m|h|d)?" (env "ROUTER_SLOWLORIS_TIMEOUT" "")) }}
timeout http-request {{env "ROUTER_SLOWLORIS_TIMEOUT" "10s" }}
{{- else }}
Expand Down

0 comments on commit 61b1f2a

Please sign in to comment.