Skip to content

Commit

Permalink
reduce network timeouts to 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Oct 8, 2023
1 parent aadfd91 commit 3147a11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public class RemoteVerifyJob extends JobService {
static final String DOMAIN = "attestation.app";
private static final String CHALLENGE_URL = "https://" + DOMAIN + "/challenge";
private static final String VERIFY_URL = "https://" + DOMAIN + "/verify";
private static final int CONNECT_TIMEOUT = 60000;
private static final int READ_TIMEOUT = 60000;
private static final int CONNECT_TIMEOUT = 30000;
private static final int READ_TIMEOUT = 30000;
private static final int DEFAULT_INTERVAL = 4 * 60 * 60;
private static final int MIN_INTERVAL = 60 * 60;
private static final int MAX_INTERVAL = 7 * 24 * 60 * 60;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public class SubmitSampleJob extends JobService {
private static final String TAG = "SubmitSampleJob";
private static final int JOB_ID = 2;
private static final String SUBMIT_URL = "https://" + RemoteVerifyJob.DOMAIN + "/submit";
private static final int CONNECT_TIMEOUT = 60000;
private static final int READ_TIMEOUT = 60000;
private static final int CONNECT_TIMEOUT = 30000;
private static final int READ_TIMEOUT = 30000;
private static final int ESTIMATED_DOWNLOAD_BYTES = 4 * 1024;
private static final int ESTIMATED_UPLOAD_BYTES = 16 * 1024;
private static final int NOTIFICATION_ID = 2;
Expand Down

0 comments on commit 3147a11

Please sign in to comment.