Smaller timeouts

merge-requests/20/merge
Bob Mottram 2021-03-21 13:35:15 +00:00
parent 15d62ab6b8
commit 54efec157a
4 changed files with 7 additions and 7 deletions

View File

@ -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')

View File

@ -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)

View File

@ -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)

View File

@ -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)