Skip to content

Commit

Permalink
Longer timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Jun 28, 2023
1 parent 6e60499 commit 4abaff8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private synchronized boolean isCaptchaValid(String secretKey, String response) {
http = (HttpURLConnection) new URL(url).openConnection();
}
http.setDoOutput(true);
http.setConnectTimeout(10*1000);
http.setConnectTimeout(30*1000);
http.setRequestMethod("POST");
http.setRequestProperty("Content-Type",
"application/x-www-form-urlencoded; charset=UTF-8");
Expand Down

0 comments on commit 4abaff8

Please sign in to comment.