mirror of https://gitlab.com/bashrc2/epicyon
Smaller timeouts
parent
15d62ab6b8
commit
54efec157a
|
@ -258,7 +258,7 @@ def sendAnnounceViaServer(baseDir: str, session,
|
|||
'Authorization': authHeader
|
||||
}
|
||||
postResult = postJson(session, newAnnounceJson, [], inboxUrl,
|
||||
headers, 30, True)
|
||||
headers, 3, True)
|
||||
if not postResult:
|
||||
print('WARN: announce not posted')
|
||||
|
||||
|
@ -337,7 +337,7 @@ def sendUndoAnnounceViaServer(baseDir: str, session,
|
|||
'Authorization': authHeader
|
||||
}
|
||||
postResult = postJson(session, unAnnounceJson, [], inboxUrl,
|
||||
headers, 30, True)
|
||||
headers, 3, True)
|
||||
if not postResult:
|
||||
print('WARN: undo announce not posted')
|
||||
|
||||
|
|
|
@ -1026,7 +1026,7 @@ def sendFollowRequestViaServer(baseDir: str, session,
|
|||
'Authorization': authHeader
|
||||
}
|
||||
postResult = \
|
||||
postJson(session, newFollowJson, [], inboxUrl, headers, 30, True)
|
||||
postJson(session, newFollowJson, [], inboxUrl, headers, 3, True)
|
||||
if not postResult:
|
||||
if debug:
|
||||
print('DEBUG: POST follow request failed for c2s to ' + inboxUrl)
|
||||
|
@ -1119,7 +1119,7 @@ def sendUnfollowRequestViaServer(baseDir: str, session,
|
|||
'Authorization': authHeader
|
||||
}
|
||||
postResult = \
|
||||
postJson(session, unfollowJson, [], inboxUrl, headers, 30, True)
|
||||
postJson(session, unfollowJson, [], inboxUrl, headers, 3, True)
|
||||
if not postResult:
|
||||
if debug:
|
||||
print('DEBUG: POST unfollow failed for c2s to ' + inboxUrl)
|
||||
|
|
4
like.py
4
like.py
|
@ -204,7 +204,7 @@ def sendLikeViaServer(baseDir: str, session,
|
|||
'Authorization': authHeader
|
||||
}
|
||||
postResult = postJson(session, newLikeJson, [], inboxUrl,
|
||||
headers, 30, True)
|
||||
headers, 3, True)
|
||||
if not postResult:
|
||||
if debug:
|
||||
print('WARN: POST like failed for c2s to ' + inboxUrl)
|
||||
|
@ -286,7 +286,7 @@ def sendUndoLikeViaServer(baseDir: str, session,
|
|||
'Authorization': authHeader
|
||||
}
|
||||
postResult = postJson(session, newUndoLikeJson, [], inboxUrl,
|
||||
headers, 30, True)
|
||||
headers, 3, True)
|
||||
if not postResult:
|
||||
if debug:
|
||||
print('WARN: POST unlike failed for c2s to ' + inboxUrl)
|
||||
|
|
2
posts.py
2
posts.py
|
@ -2130,7 +2130,7 @@ def sendPostViaServer(projectVersion: str,
|
|||
postDumps = json.dumps(postJsonObject)
|
||||
postResult = \
|
||||
postJsonString(session, postDumps, [],
|
||||
inboxUrl, headers, debug, 60, True)
|
||||
inboxUrl, headers, debug, 5, True)
|
||||
if not postResult:
|
||||
if debug:
|
||||
print('DEBUG: POST failed for c2s to ' + inboxUrl)
|
||||
|
|
Loading…
Reference in New Issue