Skip to content

Commit

Permalink
specify all request timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Aug 28, 2023
1 parent 34c3aa1 commit 56cc422
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ public class HttpClientTools {

public static final RequestConfig DEFAULT_REQUEST_CONFIG = RequestConfig.custom()
.setConnectTimeout(3000)
.setConnectionRequestTimeout(3000)
.setSocketTimeout(3000)
.setCookieSpec(CookieSpecs.STANDARD)
.build();

private static final RequestConfig NO_COOKIES_REQUEST_CONFIG = RequestConfig.custom()
.setConnectTimeout(3000)
.setConnectionRequestTimeout(3000)
.setSocketTimeout(3000)
.setCookieSpec(CookieSpecs.IGNORE_COOKIES)
.build();

Expand Down

0 comments on commit 56cc422

Please sign in to comment.