From 54efec157a9c4371fd4788eb69388b8be2dcd5da Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Mar 2021 13:35:15 +0000 Subject: [PATCH] Smaller timeouts --- announce.py | 4 ++-- follow.py | 4 ++-- like.py | 4 ++-- posts.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/announce.py b/announce.py index 01212264e..435cd911e 100644 --- a/announce.py +++ b/announce.py @@ -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') diff --git a/follow.py b/follow.py index ab2b5d595..51b116a89 100644 --- a/follow.py +++ b/follow.py @@ -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) diff --git a/like.py b/like.py index 2bc561de5..f009cbd20 100644 --- a/like.py +++ b/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) diff --git a/posts.py b/posts.py index cf49930fb..74ea9133b 100644 --- a/posts.py +++ b/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)