[Libreoffice-commits] dev-tools.git: gerrit/auto-submit

Miklos Vajna vmiklos at collabora.co.uk
Tue Mar 27 07:06:02 UTC 2018


 gerrit/auto-submit/gerrit-autosubmit |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 51057dedc1be76398d6fadb1bbc7350a5483058c
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Mar 27 09:04:58 2018 +0200

    gerrit-autosubmit: opt in for keep-alive
    
    It seems this reduces the amount of exit-due-to-timeout issues.
    
    Change-Id: I35c52b9d812531f79e5ebf924e578e16df65fa5e

diff --git a/gerrit/auto-submit/gerrit-autosubmit b/gerrit/auto-submit/gerrit-autosubmit
index 4f6f184..4aa4f1e 100755
--- a/gerrit/auto-submit/gerrit-autosubmit
+++ b/gerrit/auto-submit/gerrit-autosubmit
@@ -20,7 +20,7 @@ server = get_config("gerrit.host")
 project = get_config("gerrit.project")
 branch = get_config("gerrit.defaultbranch")
 
-sock = subprocess.Popen(["ssh", server, "gerrit", "stream-events"], stdout=subprocess.PIPE, bufsize=1)
+sock = subprocess.Popen(["ssh", "-o", "ServerAliveInterval=5", server, "gerrit", "stream-events"], stdout=subprocess.PIPE, bufsize=1)
 
 try:
     for line in iter(sock.stdout.readline, b''):


More information about the Libreoffice-commits mailing list