Skip to content

Commit

Permalink
Update only the API client connection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
thogarty committed Oct 19, 2023
1 parent 84c317a commit f30ff5b
Show file tree
Hide file tree
Showing 3 changed files with 1,881 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pull:
docker_generate:
${DOCKER_OPENAPI} generate \
-i /local/${SPEC_PATCHED_FILE} \
-t /local/templates/Java \
-g java \
-c /local/${OPENAPI_CONFIG} \
-o /local/${OPENAPI_GENERATED_CLIENT} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ private void initHttpClient() {

private void initHttpClient(List<Interceptor> interceptors) {
OkHttpClient.Builder builder = new OkHttpClient.Builder();
builder.connectTimeout(60, TimeUnit.SECONDS);
builder.addNetworkInterceptor(getProgressInterceptor());
for (Interceptor interceptor: interceptors) {
builder.addInterceptor(interceptor);
Expand Down
Loading

0 comments on commit f30ff5b

Please sign in to comment.