File tree Expand file tree Collapse file tree 5 files changed +17
-6
lines changed
src/main/java/ee/cyber/cdoc2/client Expand file tree Collapse file tree 5 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ cdoc2.client.server.id=localhost
77cdoc2.client.server.base-url.post =https://localhost:8443
88# Quering capsules requires mTLS
99cdoc2.client.server.base-url.get =https://localhost:8444
10+
1011cdoc2.client.server.debug =true
12+ cdoc2.client.server.connect-timeout =1000
13+ cdoc2.client.server.read-timeout =1000
1114
1215# trusted certificates by client
1316cdoc2.client.ssl.trust-store.type =JKS
Original file line number Diff line number Diff line change 88 </parent >
99
1010 <artifactId >cdoc2-cli</artifactId >
11- <version >1.4.0 </version >
11+ <version >1.4.1-SNAPSHOT </version >
1212 <description >Command line utility to create/process CDOC2 files</description >
1313
1414 <properties >
4242 <dependency >
4343 <groupId >ee.cyber.cdoc2</groupId >
4444 <artifactId >cdoc2-lib</artifactId >
45- <version >1.4.0 </version >
45+ <version >1.4.1-SNAPSHOT </version >
4646 </dependency >
4747 </dependencies >
4848
Original file line number Diff line number Diff line change 88 </parent >
99
1010 <artifactId >cdoc2-client</artifactId >
11- <version >1.4.0 </version >
11+ <version >1.4.1-SNAPSHOT </version >
1212 <description >CDOC2 server client generation from openapi specification</description >
1313
1414 <properties >
Original file line number Diff line number Diff line change @@ -169,11 +169,19 @@ protected void customizeClientBuilder(ClientBuilder clientBuilder) {
169169 }
170170 };
171171
172+ // BUG in openapi-generator ApiClient, {@link org.openapitools.client.ApiClient#setDebugging}
173+ // overwrites already set httpclient properties, like setConnectTimeout()
174+ // setDebugging must be called first, same with setClientConfig and other methods that
175+ // call ApiClient#buildHttpClient()
176+ apiClient .setDebugging (debug );
177+
172178 apiClient .setBasePath (this .baseUrl );
179+
180+ log .debug ("Setting connect timeout to {}" , connectTimeoutMs );
173181 apiClient .setConnectTimeout (connectTimeoutMs );
182+ log .debug ("Setting read timeout to {}" , readTimeoutMs );
174183 apiClient .setReadTimeout (readTimeoutMs );
175184
176- apiClient .setDebugging (debug );
177185 apiClient .addDefaultHeader ("Accept" , "application/json" );
178186 apiClient .selectHeaderAccept ("application/json" );
179187
Original file line number Diff line number Diff line change 88 <modelVersion >4.0.0</modelVersion >
99
1010 <artifactId >cdoc2-lib</artifactId >
11- <version >1.4.0 </version >
11+ <version >1.4.1-SNAPSHOT </version >
1212 <description >CDOC2 creation and processing library</description >
1313
1414 <properties >
2626 <dependency >
2727 <groupId >ee.cyber.cdoc2</groupId >
2828 <artifactId >cdoc2-client</artifactId >
29- <version >1.4.0 </version >
29+ <version >1.4.1-SNAPSHOT </version >
3030 </dependency >
3131
3232 <dependency >
You can’t perform that action at this time.
0 commit comments