Set keepalives for gerrit connections

Some gerrit clients connect through stateful firewalls,
which are occasionally "flushed", which leads to hanging of the connection.
This could be avoided by tcp keepalives.
To turn keepalives on, set "keepalive" in gerrit connection attributes to non-zero
(0 means no keepalives sent)
The default is turn it on with timeout of 60 seconds.

Change-Id: Ic3d11e0ac2108f02832e2114ba8bc1adcc87cb4f
This commit is contained in:
Evgeny Antyshev
2015-10-23 16:03:10 +00:00
parent 4c51d9c6da
commit 9f0a3229f7
3 changed files with 13 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ server=review.example.com
;baseurl=https://review.example.com/r
user=jenkins
sshkey=/home/jenkins/.ssh/id_rsa
;keepalive=60
[connection smtp]
driver=smtp