Longer thread timeout

main2
Bob Mottram 2019-11-07 21:03:17 +00:00
parent dd6916b580
commit 49a1169e67
2 changed files with 2 additions and 1 deletions

View File

@ -1719,6 +1719,7 @@ def sendToFollowers(session,baseDir: str, \
print('DEBUG: Sending profile update from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain) print('DEBUG: Sending profile update from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
if isUpdate: if isUpdate:
postJsonObject['cc']=[httpPrefix+'://'+toDomain+'/users/'+toNickname] postJsonObject['cc']=[httpPrefix+'://'+toDomain+'/users/'+toNickname]
sendSignedJson(postJsonObject,session,baseDir, \ sendSignedJson(postJsonObject,session,baseDir, \
nickname,domain,port, \ nickname,domain,port, \
toNickname,toDomain,toPort, \ toNickname,toDomain,toPort, \

View File

@ -90,7 +90,7 @@ def removeDormantThreads(baseDir: str,threadsList: [],debug: bool) -> None:
print('DEBUG: thread is not alive ten seconds after start') print('DEBUG: thread is not alive ten seconds after start')
removeThread=True removeThread=True
# timeout for started threads # timeout for started threads
if (currTime-th.startTime).total_seconds()>120: if (currTime-th.startTime).total_seconds()>600:
if debug: if debug:
print('DEBUG: started thread timed out') print('DEBUG: started thread timed out')
removeThread=True removeThread=True