forked from indymedia/epicyon
Longer thread timeout
parent
dd6916b580
commit
49a1169e67
1
posts.py
1
posts.py
|
@ -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, \
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue