From 5e586315975ee3af42235d90eaca5cc7e4ee2d61 Mon Sep 17 00:00:00 2001
From: Blake Fitch <blake.fitch@tuebingen.mpg.de>
Date: Thu, 26 May 2022 13:49:45 +0200
Subject: [PATCH] set connection timeout to 6000 secs

---
 pymods/irods_utils/irods_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pymods/irods_utils/irods_utils.py b/pymods/irods_utils/irods_utils.py
index 6d57391..20f077a 100644
--- a/pymods/irods_utils/irods_utils.py
+++ b/pymods/irods_utils/irods_utils.py
@@ -80,7 +80,7 @@ def get_irods_session( host, port, zone, user, password, do_not_block=False, tim
             # Trust but verify ... inside the try.
             if irods_sesh != None :
                 # iRODS session time out disabled. We depend on docker or other outside health monitors
-                irods_sesh.connection_timeout = 0
+                irods_sesh.connection_timeout = 6000 # 100 minutes
                 # This is a quick test to see that it is working. Could do this only in DEBUG mode.
                 coll = irods_sesh.collections.get( "/" + str( irods_sesh.zone ) + "/home/" + str( irods_sesh.username ) )
                 break; # this is the good exit of the while loop
-- 
GitLab