summaryrefslogtreecommitdiff
path: root/baserock_frontend
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2016-02-29 18:24:03 +0000
committerBaserock Gerrit <gerrit@baserock.org>2016-03-01 11:02:47 +0000
commit85d56a9a449d593b46aef34736585009ce958abb (patch)
tree4b6604a1b6050d900ddeb40310f2626d4dad7f5e /baserock_frontend
parent843d0128ee4b1bc8ebb73ba8f2857637485c4e18 (diff)
downloadinfrastructure-85d56a9a449d593b46aef34736585009ce958abb.tar.gz
baserock_frontend: Increase timeout for Gerrit SSH connections to 1 hour
The `gerrit stream-events` command requires a long-lived SSH connection, it's annoying to have to reconnect every minute. I'd be happy to increase timeout further, although it cannot be infinite. Change-Id: I9398f6feaf8585ac1bdb6f7cd828518cdc3ea291
Diffstat (limited to 'baserock_frontend')
-rw-r--r--baserock_frontend/haproxy.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/baserock_frontend/haproxy.cfg b/baserock_frontend/haproxy.cfg
index bd6f2995..1d26c577 100644
--- a/baserock_frontend/haproxy.cfg
+++ b/baserock_frontend/haproxy.cfg
@@ -83,6 +83,10 @@ frontend ssh-in:
bind *:29418
default_backend baserock_gerrit_ssh
+ # It's very annoying for 'gerrit stream-events' to have disconnection
+ # after 50 seconds!
+ timeout client 1h
+
# Entries here locate each server backend.
backend baserock_gerrit_http
@@ -92,6 +96,10 @@ backend baserock_gerrit_ssh
mode tcp
server baserock_gerrit 192.168.222.69:29418
+ # It's very annoying for 'gerrit stream-events' to have disconnection
+ # after 50 seconds!
+ timeout server 1h
+
backend baserock_irclogs_http
server baserock_irclogs 192.168.222.74:80