From 49a1169e676c6071fe52f2e663f9cb580dce57fd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 7 Nov 2019 21:03:17 +0000 Subject: [PATCH] Longer thread timeout --- posts.py | 1 + threads.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index d60023aa..fc0045d2 100644 --- a/posts.py +++ b/posts.py @@ -1719,6 +1719,7 @@ def sendToFollowers(session,baseDir: str, \ print('DEBUG: Sending profile update from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain) if isUpdate: postJsonObject['cc']=[httpPrefix+'://'+toDomain+'/users/'+toNickname] + sendSignedJson(postJsonObject,session,baseDir, \ nickname,domain,port, \ toNickname,toDomain,toPort, \ diff --git a/threads.py b/threads.py index d5e5c4de..68dc0d97 100644 --- a/threads.py +++ b/threads.py @@ -90,7 +90,7 @@ def removeDormantThreads(baseDir: str,threadsList: [],debug: bool) -> None: print('DEBUG: thread is not alive ten seconds after start') removeThread=True # timeout for started threads - if (currTime-th.startTime).total_seconds()>120: + if (currTime-th.startTime).total_seconds()>600: if debug: print('DEBUG: started thread timed out') removeThread=True